2/15/2023 0 Comments Zoc terminal scrolling...The man page for terminfo does have one more helpful jot, though. I'd have to guess that this all connects to the GNOME Terminal I'm using that's default to Ubuntu, but I'm tired of trying to figure out how. I did find a set of /usr/share/vte/termcap*/ directories that contain human-readable xterm files. ![]() The article also mentions source code files /etc/termcap and /etc/terminfo.src, but these do not exist in Ubuntu 16.04. Infocmp: couldn't open terminfo file /lib/terminfo/l/linux. The article linked above states that infocmp can be used to see their source, but that isn't true: $ infocmp /lib/terminfo/l/linux lib/terminfo/l/linux, which is probably the most relevant file for most readers? I can't tell, because these files are not human-readable. The real files are in /lib/terminfo/*/* e.g. Man terminfo indicates its files are in /etc/terminfo/*/*, but on Ubuntu 16.04 I found only a README there. Presumably every Linux installation has one? So you can use different terminals? Evidently terminfo is a database of different terminals and what commands and capabilities they have. ![]() ![]() The most comprehensive source I can find is a article. Terminfo is also not very usefully documented. The tput utility uses the terminfo database to make the values of terminal-dependent capabilities and information available to the shell (see sh(1)), to initialize or reset the terminal, or return the long name of the requested terminal type. His first solution, the command $ tput rmcup, works, though there's not much in the way of explanation. Henstridge's answer to this AskUbuntu question seems to identify the error correctly as the terminal getting stuck in a "cursor addressing" mode, whatever that means.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |