Replies: 1 comment 1 reply
-
When you press Enter in terminals it sends CR (= By the way, and if you haven't done so already, you can also enable Edit: Just now I realized that if you enable LNM it'll send CRLF on Enter: https://vt100.net/docs/vt510-rm/LNM.html |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys; thanks for the software!
I hope you don't mind a question, about input in raw mode.
I have ported a small repl line reader/editor, sort of a very simplified GNU Readline "-likeish" application written in CommonLisp and available only for POSIX systems. It was relatively easy to port it to win32 console API; and everything but one thing works: I can't use raw Enter key to send the line to the reader. I can use Ctrl+Enter or Ctrl+J; actually both work well out of the box, and seem to send CRLF sequence. However, just plain pure Enter seem to never be passed to the application?
When I look in the debug window I can see following sequence of VT codes being printed after hitting Enter:
␛[13;28;13;1;32;1_␛[13;28;13;0;32;1_
I have logged key presses, and I am sure that the application does not see the sole Enter key.
I have checked the docs for raw/cooked mode for the console API and I have seen some of the discussions here, for example this one (there is another one similar). It is probably nothing wrong with the Terminal, but just me misunderstanding some flag or something else stupidly simple.
I have done web search and seen some SX pages, and examples around, but I am not really sure what is going on here. I am really not very familiar with low-level input, or rather to say, I am total n00b :). If someone could point me in the right direction it would be really appreciated and helpful.
Thanks in advance and best regards!
Beta Was this translation helpful? Give feedback.
All reactions