On 19/03/2019 09:17, Dold, Wolfram wrote:
Hi there,
when we connect via ssh to our embedded device, the backspace key does not work.
During the analysis we found out that the passage

# This fixes the backspace when telnetting in.
if [ "$TERM" != "linux" ]; then
         stty erase ^H
fi

from the file '/etc/profile' contained in ptxdist.

Now I want to ask, how best to fix this behavior?
Can the passage simply be omitted? (At least the comment lets me assume that, 
because there 'telnet' is mentioned and
that is no longer necessarily state of the art).
Or does omitting it lead to other unwanted side effects?

Any help would be appreciated.


Code can interpret input characters in various ways independently of the stty settings. For example, if the "Command Line Editing" feature is enabled in the Busybox configuration, the Busybox "ash" and "hush" shells' interactive line editing will handle both ASCII DEL and ASCII BS as a "backspace" operation. This can be enabled in the PTXdist menuconfig via:

Shell & Console Tools --->
  -*- busybox --->
      Settings --->
        [*] Command Line Editing

This sets "PTXCONF_BUSYBOX_FEATURE_EDITING=y" in the ptxconfig file.

If you are using Bash or some other other program with READLINE support, I think it handles ASCII BS and ASCII DEL similarly to Busybox's command line editing feature.

--
-=( 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