aaronjanse / 3mux

Terminal multiplexer inspired by i3
MIT License
1.82k stars 46 forks source link

implement Reverse Index (fixes nano scrolling) #80

Closed aaronjanse closed 4 years ago

aaronjanse commented 4 years ago

Implements Reverse Index, which is pretty much a backward newline. Fixes scrolling in nano

https://docs.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences

aaronjanse commented 4 years ago

Awesome! Is this intended to fix a part of @ #79 ?

Yep! I just pushed another commit to fix downward scrolling, too.

Gist of what this PR does:

  1. Previously, ESC 7 and ESC 8 (cursor save/restore) were not recognized. In addition to not saving/restoring the cursor, this also caused a newline character to be ignored (because it was slurped while trying to figure out what ESC 7/8 mean)
  2. Previously, Reverse Index (inverse newline) was recognized by the parser but not handled by vterm