Replies: 4 comments
-
I see that you are combining the Windows Console APIs with the use of Virtual Terminal sequences. I wonder if you would be able to use the Virtual Terminal sequences for cursor positioning, rather than trying to move the cursor directly in the coordinate system. You can move the cursor up one line relative to the current position (X stays the same, Y decrements) with
You can move the cursor to the beginning of the previous line (X = 0, Y decrements) with
Does that help? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I want to add a little remark. Today, 5 minutes ago, I have tested my code above using ANSI code
... and this work correctly for the 3 cases ... This is not the case when I use
I can use your technic with success but the next step in my program is to overwrite "folder" line when no file in folder matchs the searching text ! In this new situation, I find API solution easier that API command sequence ! The problem is that API solution doesn't allow to correct previous recorded cursor position when cursor is at bottom of screen !!! |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description of the new feature
where DATA-BUFFER contains all rows displayed and all rows that has been displayed before and that are currently only visible in scrolling console vertically.
My question with more explanation can be found on StackOverflow on https://stackoverflow.com/questions/79725603/on-windows-terminal-in-visual-c-how-can-i-overwrite-previous-lines
Proposed technical implementation details
No response
Beta Was this translation helpful? Give feedback.
All reactions