Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"WTF Sequences" #10

Open
tomek-szczesny opened this issue Jul 8, 2021 · 4 comments
Open

"WTF Sequences" #10

tomek-szczesny opened this issue Jul 8, 2021 · 4 comments
Labels
discussion Stuff to talk through question Further information is requested

Comments

@tomek-szczesny
Copy link
Owner

I don't even know where to begin. What is all this shit?
(This topic is dedicated to discussing sequences with unclear meaning)

// \e=                  // Application Keypad (DECKPAM)
// \e[?1h               // Application cursor keys (DECCKM)
// \e[?1l               // Normal Cursor Keys
@tomek-szczesny tomek-szczesny added help wanted Extra attention is needed question Further information is requested discussion Stuff to talk through and removed help wanted Extra attention is needed labels Jul 8, 2021
@o-sdn-o
Copy link

o-sdn-o commented Jul 8, 2021

\e[? 1 h/l

Keyboard arrow keys representation mode

Key Off On
Up \e[A \eOA
Down \e[B \eOB
Right \e[C \eOC
Left \e[D \eOD
Up \e[1A \eOA
Down \e[1B \eOB
Right \e[1C \eOC
Left \e[1D \eOD

@tomek-szczesny
Copy link
Owner Author

So the terminal can listen to either one or another style of cursor moving commands? Why not expect both at the same time?

@o-sdn-o
Copy link

o-sdn-o commented Jul 8, 2021

Here the application tells the terminal in what format it wants to accept the pressed arrow keys.

Terminal will send it to the app when user press any arrow key.

@tomek-szczesny
Copy link
Owner Author

So that's a part of much bigger discussion then - the plan was to develop ncplane_putvt(), just for displaying a terminal window, and this is another reason why VT must be a separate widget - to handle stuff like this, signaling from the terminal back to the underlying program.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Stuff to talk through question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants