Linux – How to prevent GNU screen from expanding tabs into spaces

bashgnu-screenlinux

Using a normal bash prompt echo -e 'hello\tworld' produces a real tab.
However the same command run within GNU screen puts spaces between the two words.

I have tested this on
Ubuntu 10.04 with Screen version 4.00.03jw4 (FAU) 2-May-06
and
RHEL 5.5 with Screen version 4.00.03 (FAU) 23-Oct-06

Is there a way to have screen output tab characters instead of converting them to spaces?

Best Answer

No, there is no way, short of writing code. Have a look at the man page under "BUGS:"

  • Screen does not make use of hardware tabs.

Hardware, in my case, is the software "gnome-terminal."