Closed Eczbek closed 1 year ago
The changes you've made break the arrow, function, or alt-left keys, at least on my macbook pro -- if you run ./build.sh && ./build/main
then press an arrow key, you'll get this output:
Key{ code: , mods: [ OTHER ], raw: }
Key{ code: [, mods: [], raw: }
Key{ code: A, mods: [ SHFT ], raw: }
When the expected output is:
Key{ code: A, mods: [ ARROW ], raw: \x1b\x5b\x41}
All fixed
pressing Alt_L+D says OTHER (though this might be my terminal emulator)
Think I just got it! (It helps when I have a quiet day at work. :p) If you run ./build.sh && ./build/main
, you can press keys and see it running (that's how I've been testing it ).
Pos
structure, now returned byget_term_size
and accepted bymove_cursor
asciiLetters
into an unordered set for better accessing<utility>
inclusionrawterm
namespaceREADME.md
,main.cpp
, andescape.cpp
files