View Single Post
Old 11-04-2014, 03:54 AM   #7
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by brianinmaine View Post

- - - -

I don't see where htop calls or uses the terminfo file. TERM is set to xterm, is there a better one?

So much to learn here! Any help, please?
Ah, a true case of hidden magic.
If the software is using it, it may well be 'hidden' from view (linked in statically).

Apps that recognize 'TERM' are using that setting as an index into the terminfo file (which is a sort of database).

That 'tells' the application what character sequences your terminal (or terminal emulator) 'speaks'.
I think KTerm defaults to 'xterm' and htop needs to send those character sequences.

Very, very "old school" - it has been around nearly as long as *nix.
So old, that I may have some of the above details wrong.
But the above is the general sense of what is happening.

- - - - -

'xterm' is probably correct, but there may be a 'linux' index also - you might try that.
(I think they are the same, or nearly so.)
knc1 is offline   Reply With Quote