3 ms·
This is awesome. For a long while I have wanted to write character-based applications with greater control of the keyboard; think "a terminal tetris that can re
by gonzus 5y ago
This is awesome. For a long while I have wanted to write character-based applications with greater control of the keyboard; think "a terminal tetris that can recognize key combinations such as Alt-I, Ctrl-J, Alt-Ctrl-PgUp, Meta-Ctrl-F14, etc." This should work OK whether running locally on the console, on a (serial) terminal, on a graphical (X Windows / Wayland) terminal, on a remote (SSH) terminal, etc.
I wish something like this was also created for the mouse, so that you could use your mouse everywhere (including the console without any graphical environment running), remotely over ssh, etc. I see no reason why a similar protocol could not transmit mouse events over ssh and allow you to interact, using your mouse, with a remote character-based application.
I would love for such proposals to gain traction and be accepted everywhere.
- sprash 5y agoThere are already several standardized mouse protocols available some even with pixel precision. The most complete implementation of those protocols has xterm. They can be tested with a program called "vttest".
- smhenderson 5y agoHave you heard of gpm[1] - general purpose mouse? Slackware offers to install and enable it by default, even these days. It's a terminal based mouse server. ncurses supports it so it's theoretically possible to do all the same things in a TUI that you would in a GUI with a mouse. [1] https://en.wikipedia.org/wiki/GPM_(software) https://en.wikipedia.org/wiki/GPM_(software)
- drran 5y agoGPM is for console, not for terminal. I used it a lot in virtual console, before switching to X11 based terminal emulators.
- deleted 5y ago[deleted]