Should tabs (0x09) be destructive? #15524

Closed
opened 2026-01-31 04:41:05 +00:00 by claunia · 5 comments
Owner

Originally created by @vefatica on GitHub (Oct 12, 2021).

I thought this would have been discussed before, but I couldn't find anything on it.

In older consoles (my only old one is Windows 7) tabs (0x09) exhibit a "destructive" behavior; that is, old text is overwritten with spaces. More up-to date consoles (and WT) don't behave that way. I'm not saying which is "correct" but the older behavior seems more useful. Here's the difference, Windows 7 on top, Windows 10 on the bottom.

image

image

Originally created by @vefatica on GitHub (Oct 12, 2021). I thought this would have been discussed before, but I couldn't find anything on it. In older consoles (my only old one is Windows 7) tabs (0x09) exhibit a "destructive" behavior; that is, old text is overwritten with spaces. More up-to date consoles (and WT) don't behave that way. I'm not saying which is "correct" but the older behavior seems more useful. Here's the difference, Windows 7 on top, Windows 10 on the bottom. ![image](https://user-images.githubusercontent.com/61856645/136986456-6ab6f0d6-2eaa-45ff-959d-7addb7444ea4.png) ![image](https://user-images.githubusercontent.com/61856645/136986551-85ed734c-ff46-4b47-bc94-ad3b7dba5d17.png)
claunia added the Needs-TriageNeeds-Tag-Fix labels 2026-01-31 04:41:05 +00:00
Author
Owner

@DHowett commented on GitHub (Oct 12, 2021):

In VT mode, Horizontal Tab only advances the cursor to the next tab stop.

@DHowett commented on GitHub (Oct 12, 2021): In VT mode, Horizontal Tab only advances the cursor to the next tab stop.
Author
Owner

@vefatica commented on GitHub (Oct 12, 2021):

In VT mode, Horizontal Tab only advances the cursor to the next tab stop.

Yes, that's obvious. Is that what I'd see if I could boot up Linux to a CUI, or to some emulator in XWindows?

@vefatica commented on GitHub (Oct 12, 2021): > In VT mode, Horizontal Tab only advances the cursor to the next tab stop. Yes, that's obvious. Is that what I'd see if I could boot up Linux to a CUI, or to some emulator in XWindows?
Author
Owner

@DHowett commented on GitHub (Oct 12, 2021):

Yep! Totally is.

@DHowett commented on GitHub (Oct 12, 2021): Yep! Totally is.
Author
Owner

@DHowett commented on GitHub (Oct 12, 2021):

What I mean to say is:

In VT mode, Horizontal Tab is only supposed to advance the cursor to the next tab stop. 😄

@DHowett commented on GitHub (Oct 12, 2021): What I mean to say is: In VT mode, Horizontal Tab _is only supposed to_ advance the cursor to the next tab stop. :smile:
Author
Owner

@vefatica commented on GitHub (Oct 12, 2021):

That's clear enough. I didn't know what it was supposed to do.

@vefatica commented on GitHub (Oct 12, 2021): That's clear enough. I didn't know what it was supposed to do.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15524