[tin-dev] full screen width in raw-mode?

Urs Janßen urs at tin.org
Thu Aug 10 00:05:21 CEST 2023


On Wed, 09 Aug 2023 22:56:17 Thomas Dickey wrote:
>> I wonder why we have -1 here (for years) and if the following would have
>> any unwanted side effects?
> 
> it does - the "-1" is to work around differences in terminal wrapping.
> 
> DEC vt100 and compatible terminals will leave the cursor on the right
> margin when writing a printable character (counting space), and ignore
> newline, tab, written at that point.  Another printable character will
> make it wrap.
> 
> Some other terminals don't do that.
> 
> In terminfo(5), that's
> 
>           eat_newline_glitch          xenl      xn     newline ignored af‐
>                                                        ter 80 cols (con‐
>                                                        cept)
>  
> (I recall explaining this a while back, but it's probably quite a while)

thanks, so I'll leave the code as it but add a comment about the -1.
just to avoid asking the same question in ~2046 again ,-)



More information about the tin-dev mailing list