#mouse scroll and arrows in alternate screen

7 messages · Page 1 of 1 (latest)

woeful coyote
#

scrolling/using arrow keys in crossterm alternate screen is a big buggy, it gives something like ^[[A for each stroke and pretty much breaks the whole thing trying to receive normal input
how do i prevent this or are there somethings i am missing?

wooden kernel
#

I think this stems from a misunderstanding of what the alternate screen mode is. The alternate screen mode does not maintain a scrollback area, and therefore ignores commands to scroll across that buffer. \0x1B \[ \A (written to the screen as ^[[A for readability) is the sequence of codes sent by the keyboard to your computer when you press the Up arrow key

#

Alternate screen mode isn't part of crossterm - it's part of the terminal

#

@woeful coyote

woeful coyote
#

Ah well

#

So basically when the scroll command is executed it just prints that command regarding of the cursor or what's happening

#

Well, anyways to prevent that? Just not have it print at all?