3 ms·
Local echo always felt like a handy feature for any kind of laggy terminal app, not just ssh / mosh. I imagine such a tool would emulate a terminal a la screen
by gorgoiler 5y ago
Local echo always felt like a handy feature for any kind of laggy terminal app, not just ssh / mosh.
I imagine such a tool would emulate a terminal a la screen / tmux, and just print what you type until the underlying program outputs to stdout, at which point it undoes what you typed and replays the stdout? I realise I may be betraying a complete lack of understanding of how Unix terminals actually work :)
Is there a Unix utility that implements a local-echo wrapper?
- tmsbrg 5y agoHmm, rlwrap[0] is a really nice tool when working with applications that are poor at handling terminal input. It basically handles your keystrokes in rlwrap and whenever you type enter it will send the input line to the application to handle. It's very useful also for application that don't have their own input handling (arrow keys, etc.) or have extreme keystroke latency. It will even give you ctrl+r feature to search commands you typed earlier. I use it often for pentesting when getting a raw reverse shell. I'll get access to a remote bash session through netcat, and using rlwrap I can do the line editing locally and find the complex commands I've written before without copypaste. [0] https://linux.die.net/man/1/rlwrap https://linux.die.net/man/1/rlwrap