3 ms·
I think the original poster does not want to output escape codes, he wants to build a terminal that will accept escape codes like a xterm. This way, he won't ne
by reacweb 9y ago
I think the original poster does not want to output escape codes, he wants to build a terminal that will accept escape codes like a xterm. This way, he won't need to create a new terminal type with all the terminfo or ncurses configuration.
- teddyh 9y agoThe two other terminal multiplexers I know of are GNU screen and tmux. GNU screen defines its own “screen” terminal type in terminfo, and tmux shamelessly re-uses it and claims to be “screen-256color” (screen with 256 colors). So I don’t think there is any good way to avoid it.
- mjevans 9y agoI just assumed it's what someone who'd actually thought about the problem did for performance.
- bogomipz 9y ago>"shamelessly re-uses it and claims to be “screen-256color” Could you elaborate on this? Tmux uses the screen terminfo entry? Is it not actually 256?
- teddyh 9y agoIf I set my terminal type to something basic like vt102, and then start "tmux" and run "echo $TERM", I get "screen-256color". Also, the tmux(1) manual states: The TERM environment variable must be set to “screen” for all programs running inside tmux. New windows will automatically have “TERM=screen” added to their environment, but care must be taken not to reset this in shell start-up files. So, yes, Tmux uses the GNU screen terminfo entry.