NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/56496: etcupdate(8) merge formatting issue



The following reply was made to PR bin/56496; it has been noted by GNATS.

From: RVP <rvp%SDF.ORG@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: bin/56496: etcupdate(8) merge formatting issue
Date: Mon, 15 Nov 2021 22:04:31 +0000 (UTC)

 In an 80-column xterm window try this command with both
 `stty -oxtabs' and `stty oxtabs':
 
 printf 'a\ta\ta\ta\ta\ta\ta\ta\ta\ta\ta\ta\n'
 
 With the kernel expanding tabs with `oxtabs', you get `a' evenly
 spaced at every 8 cols:
 
 $ printf 'a\ta\ta\ta\ta\ta\ta\ta\ta\ta\ta\ta\n'
 a       a       a       a       a       a       a       a       a       a 
 a       a
 $
 
 With `-oxtabs' ie. xterm handling tabs, you get this:
 
 $ printf 'a\ta\ta\ta\ta\ta\ta\ta\ta\ta\ta\ta\n'
 a       a       a       a       a       a       a       a       a       a      a
 a
 $
 
 But, according to the xterm FAQ[1], this is how a real VT100 behaves.
 I recommend you just set `oxtabs' (but, that causes other odd
 display issues if a tab char. is embedded within escape sequences...)
 
 FWIW I can't reproduce this at all (-HEAD from Thu Nov 11).
 
 -RVP
 
 [1] https://invisible-island.net/xterm/xterm.faq.html#vt100_wrapping
 


Home | Main Index | Thread Index | Old Index