Replies: 2 comments 5 replies
-
And, as far as I can tell, ReadConsoleOutputW and WriteConsoleOutputW work when my EXE is run by any Windows shell running in a console or WT and don't work when my EXE is run by bash in WSL. Am I expecting too much? |
Beta Was this translation helpful? Give feedback.
-
Hmmm! I sort of understand. And that (sort of) explains why moving the cursor above the command line allows WriteConsoleOutput to write there (writing the ruler below the command line was not a problem). Of course, above the command line is where a ruler is most useful. But I don't understand why ReadConsoleOutput doesn't work anywhere when I'm running in WSL. I just get lines of NULs. In any event, I have given up. "Transclude" ... nice word! |
Beta Was this translation helpful? Give feedback.
-
Microsoft Windows 10 Pro for Workstations
10.0.19044.1889 (2009, 21H2)
WindowsTerminalPreview 1.15.2208.16002
Below is a little program. Run it in any Windows shell (console or WT) and the cursor is OFF during the Sleep(). Run it in any WSL/Ubuntu shell (console or WT) and the cursor is ON during the Sleep(). Note also that in the WSL case, the cursor is at EOL. What's going on? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions