-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tab as last character on terminal not displayed #1020
Comments
It's not a regression, it has always been like this and behaviour is consistent with xterm. |
OK, so are there any workarounds to have that behaviour changed, that tab is at least one char long or start at the position mod 8 == 0? |
Actually, it's due to the fact that TAB does not set the "pending wrap" state. It could be checked with VT100 whether that's really the original behaviour (or checked in xterm documentation whether there is a comment on this already). |
That's exactly how a real VT102 behaves:
|
I was pondering whether to consider an option to make TAB consistent with other characters with respect to auto-wrap behaviour, but on the other hand, TAB is not a printable character so not really comparable. Its common description as horizontal tabulation suggests it advances the cursor only horizontally, thus not having any wrap behaviour associated. |
There is buf (I think it is regression from 3.1.4) on mintty 3.2.0 (x86_64-pc-cygwin) [Windows 19041].
In cygwin/bash (terminal size 80x25) type command:
for i in `seq 10 50`; do echo -ne "$i$i.$i\t"; done
The output is:
but should be:
The problem is with the last tab (when the 1 char left) on line.
):
Changing command to (
\t
changed tofor i in `seq 10 50`; do echo -ne "$i$i.$i "; done
produces proper output:
Changing terminal size to 81x25 also produces right output.
The text was updated successfully, but these errors were encountered: