Ismael-VC
CTRL+ENTER not working?
Hello everyone! I am trying to write an app that needs to diferentiate between carriage return and line feed with
stty raw -echo
modes.
When I test it in WSL2 it works this way:
* CR: ENTER
* LF: ^ENTER
I plan to use this so I can make a REPL that allows multiline input editing (the language does not have block delimiters nor significant whitespace), currently I use brackets
However brackets are used in Uxntal for grouping and don't have any semantic meaning, with this in mind I thought to use double enter instead of brackets to end an expression, but from a UX point of view, typing enter twice just to finish any expression is not good
Then I learned about the non canonical input method without echo, I want to make this work so I can use CTRL+ENTER to add a newline without JIT assembling the input and executing it, so that when it is ready to be processed, a simple ENTER would do the job, this is the interaction I expect to have
Uxntal: https://wiki.xxiivv.com/site/uxntal.html
Thanks!20 replies