You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constSMCUP='\u001b[?1049h';// enable alternative screenconstCUP='\u001b[H';// move cursor to top leftterminal.write(`1${SMCUP}${CUP}2`)
read the result using serializeAddon.serialize()
Expect
You get the normal screen + alt screen in the result.
(Not sure which sequence is used to move the cursor, because there are too many ways to do it)
Actually
You get 2
The addon did not realize there is another screen exist.
Note
I am not sure whether is it designed to not do it or not.
But the normal screen is required to rebuild the terminal from empty (or exit the htop will no longer bring you back to original prompt), so I guess it is missing?
Details
Steps to reproduce
serializeAddon.serialize()
Expect
You get the normal screen + alt screen in the result.
(Not sure which sequence is used to move the cursor, because there are too many ways to do it)
Actually
You get
2
The addon did not realize there is another screen exist.
Note
I am not sure whether is it designed to not do it or not.
But the normal screen is required to rebuild the terminal from empty (or exit the htop will no longer bring you back to original prompt), so I guess it is missing?
I play with it a bit. /src/SerializeAddon.ts#L192-L201k
And if it should do it
rows
option?The text was updated successfully, but these errors were encountered: