On 22/03/2019 07:55, Michael Olbrich wrote:
Ok, I did some testing and now I'm rather confused. I tested minicom,
microcom and gtkterm on the serial port and putty (on Linux) via serial
port and telnet and a normal telnet.

In all cases backspace and delete work as expected with 'stty erase ^H' and
'stty erase ^?'.

Am I missing something here or is something magically doing the right thing
in the background?

If BUSYBOX_FEATURE_EDITING is enabled, BusyBox's "ash" and "hush" shells are doing something magical (using BusyBox's read_line_input() function) when interactively editing a command line from a TTY. The shell's built-in commands that use standard input (such as the 'read' command) do not use this magic line editing, and rely solely on the stty settings. The same applies to most external commands that can read from standard input (including those implemented by busybox) unless they implement their own readline-like functionality.

--
-=( Ian Abbott <[email protected]> || Web: www.mev.co.uk )=-
-=( MEV Ltd. is a company registered in England & Wales. )=-
-=( Registered number: 02862268.  Registered address:    )=-
-=( 15 West Park Road, Bramhall, STOCKPORT, SK7 3JZ, UK. )=-

_______________________________________________
ptxdist mailing list
[email protected]

Reply via email to