On Wed, 2007-01-03 at 19:52 +0200, Gilboa Davara wrote:
> Hello all,
> 
> Long story short, I'm using gdb to debug tab=4 code, and gdb is slowly,
> but firmly, driving me nuts.
> In a normal consoles, using $ setterm -regtabs 4 changes the tab
> width/size/stop/etc to 4.
> However, when I try to do the same in xterm/konsole/etc (where
> TERM=xterm), setterm doesn't seem to work. (Unless I set TERM=linux,
> which should break other things.)
> 
> I tried adding the it#4:  to the termcap xterm-new entry, but neither
> xterm nor konsole seem to honor it.
> 
> Anyone have any ideas? *
> 
> - Gilboa
> 
> * No religious "VI vs. Emacs" like answers. Thanks.
> 
> 

FYI, seems (without looking at the code) that setterm disables the
regtabs functionality if TERM=xterm/xterm-color.
As a result, doing '$ TERM=linux setterm -regtabs 4' works even-though
the terminal changes back to TERM=xterm/xterm-color once setterm
returns. 

Thank God for small favors :)
- Gilboa 



=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to