I am connecting to an embedded Linux board using screen over a serial link and trying to change the terminal type, as the default vt100 is pretty restrictive in terms of colours and scrolling etc.The screen manual suggests the configuration option termcapinfo but using that doesn't fix the issue.On the host machine, TERM is set to xterm-256color and when I connect to the target, using the termcapinfo setting in my .screenrc, TERM is still set to vt100.I am thinking maybe I should set something on the target machine?
Change terminal type for screen over a serial connection
terminal;gnu screen;gnome terminal;xterm
It's the remote machine that sets $TERM to vt100, because it cannot know what terminal emulator your connecting with. vt100 is a safe value as the majority of modern terminals and terminal emulators (including screen) are compatible.To tell the applications over there what your terminal actually is, you have to set $TERM explicitely:TERM=screenYou can do:find $(infocmp -D) -printf '%f\n' | sort -u | grep screento see if there are more appropriate entries like screen-256color.