เข้าสู่ระบบ สมัครสมาชิก

termcap การใช้

ประโยคมือถือ
  • Unlike termcap, terminfo has both a source and compiled representation.
  • This library was more powerful and instead of using termcap, it used terminfo.
  • The "'TERMCAP "'environment variable may contain a termcap database.
  • The "'TERMCAP "'environment variable may contain a termcap database.
  • In contrast, termcap libraries provide a limited set of operations which are useful for most terminals.
  • Unix-like operating systems could produce ANSI codes through libraries such as termcap and unlikely to work.
  • The terminfo library's emulation of termcap allows multiple other entries to be included without restricting the position.
  • The terminfo library interface also emulates the termcap interface, and does not actually use the fixed-size buffer.
  • A few other newer implementations of the termcap library may also provide this ability, though it is not well documented.
  • If you're using xterm, there is another way to get rid of the effect without editing termcap and terminfo by hand.
  • Apart from the original termcap interface shown above, there are interfaces that replace standard screen representations with Qt toolkit, or the GNOME libraries.
  • Add " XTerm * titeInhibit : true " to your . Xresources or . Xdefaults to make it do the termcap / terminfo mangling automatically.
  • In the latter case, the terminfo library functions ( as does a termcap library ) for substituting application SGR ( Select Graphic Rendition ).
  • Would there be other, unwanted side-effects with the termcap solution ?-- Diletante 14 : 34, 2 April 2007 ( UTC)
  • Like termcap, some of the " string " capabilities represent escape sequences which may be sent to the host by pressing special keys on the keyboard.
  • Worse, to control something like a text window or a teletype-you need the entire'termcap / terminfo / curses'mess to cover portability issues.
  • As these sequences were different for different platforms, elaborate libraries such as termcap had to be created so programs could use the same API to work with any terminal.
  • It is most often used to store a single termcap description, set by a terminal emulator to provide the terminal's characteristics to the shell and dependent programs.
  • Terminfo was included with UNIX System V Release 2 and soon became the preferred form of terminal descriptions in System V, rather than termcap ( which BSD continued to use ).
  • Depending on the system, clear uses the terminfo or termcap database, as well as looking into the environment for the terminal type in order to deduce how to clear the screen.
  • ตัวอย่างการใช้เพิ่มเติม:   1  2  3