[Tutor] OT (probably): How to change default tab key value to 4 spaces in GNOME Terminal?

Alan Gauld alan.gauld at yahoo.co.uk
Sun Apr 26 02:21:01 EDT 2020


On 26/04/2020 05:10, boB Stepp wrote:

> 
> After some searching online the best advice I could find was to enter
> at the command prompt "tabs -4".  I tried this and as far as I can
> tell it did not work for me while in the Python interpreter.

tab behaviour is highly problematical within terminals and programs.
You may find that changing your terminal emulator works as expected.
I seem to recall you use Solaris? If so try switching to the vanilla
xterm window rather than Suns console application. (Or on Linux
try any of the zillion consoles available: rxvt, xterm, gterm etc)

But many apps, especially those using curses will have their own tab
behaviour too. (vim is a classic example that ignores/overrides the
terminal settings)

This is one reason I never use tabs for formatting code!

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list