简体   繁体   中英

If I login linux using serial port console, does it using the terminfo or termcap?

由Linux内核的VT子系统实现的Linux控制台,当我从串行端口控制台登录时,是否使用terminfo或termcap?

It makes no difference. A few systems may use a termcap library for certain applications (offhand, probably only Slackware), but an application uses the same libraries whether or not it runs on a serial port.

Several applications use a termcap interface to the ncurses library (which provides both termcap and terminfo interfaces), but that does not change the answer. They will still use the same library (and same interface) simply because there's little point in switching between different low-level interfaces to the same library.

By "interface" of course is meant the handful of functions which are used to initialize and query the terminal database. An application using a termcap interface to ncurses still gets terminfo data, albeit slightly adjusted to work better with applications such as screen which assume that the alternate character set is not reset by the termcap md (the "same" as sgr0 ).

Further reading:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM