Hi Wolfram,
there are historically different handlings of backspace, one is
Ctrl-H, as mentioned by you below. The exact setting depends on the
terminal emulator (some terminal emulators can also switch the
behaviour, e.g. in putty, look under Terminal -> Keyboard). If backspace
works for you without the stty line, then there is no harm in leaving it
out, but the backspace behaviour could be different when connecting to
the board with a different terminal emulator.
For reference, when I type `stty -a` on my xterm, it says :
erase = ^?;
- Roland
On Tue, Mar 19, 2019 at 09:17:13AM +0000, 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.
> --
> Regards,
> Wolfram Dold
>
> _______________________________________________
> ptxdist mailing list
> [email protected]
--
Roland Hieber | [email protected] |
Pengutronix e.K. | https://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim | Phone: +49-5121-206917-5086 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
ptxdist mailing list
[email protected]