Replies: 6 comments 2 replies
-
|
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.
-
Beta Was this translation helpful? Give feedback.
-
|
Thanks to react to my post ;-) I understand what you write. That is also what I think. BUT, I regret that SAVE/RESTORE can not be nested. To implement that; I think that you must only replace a COORD variable with a stack<COORD*> variable ! Using API that Microsoft team want to suppress, work perfectly when cursor is not at bottom of console windows !!! I regret that you don't answer about I think that interaction with console using API or characters sequence can be improved. Perhaps can I do that myself with little help ! Is If yes, where ? If no, who can correct this function so that when view scrolls, |
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