- May
- 13,834
- 211
Windows 10's enhanced console allows setting the tab stops. I've suggested that TCC v25 give us some interface to this mechanism and I've been experimenting with it myself. I find that many things will cause the console's tabs to revert to the default every 8 spaces ... running any console EXE in the same console ... even running notepad (by name only, but not with START). The most surprising one (because it's internal) is TYPE. See below how the tabs are set to 4 spaces and how they're reset to 8 spaces when I type the file. The file contains "a<tab>b<tab>c ...".
Rex, can you shed some light on why the tab settings change in this and other circumstances. FWIW, I'm setting the tabs using a handle obtained with CreateFile(L"CONOUT$"). I'm using WriteConsole() with ANSI escape sequences to do it and subsequently closing the handle.
Rex, can you shed some light on why the tab settings change in this and other circumstances. FWIW, I'm setting the tabs using a handle obtained with CreateFile(L"CONOUT$"). I'm using WriteConsole() with ANSI escape sequences to do it and subsequently closing the handle.
Last edited: