backspace shows ^? in serial communication
keramida at ceid.upatras.gr
Thu Feb 28 12:23:19 UTC 2013
On 2013-02-26 23:40, s m <sperado_nada at yahoo.com> wrote:
> hello all,
> i have problem with backspace in freebsd 8.2. when i run a serial
> program to communicate via a serial port to the other system,
> backspace shows ^? in opened terminal. i use termios and fcntl to
> open, read, write and close serial port. i set erase and erase2 for
> ttyu2(my serial port) but backspace shows ^? yet.
> any body knows what i'm doing wrong? just erase and erase2 should be
> set to backspace works correctly or any other options should be set?
stty erase '^?'
in your serial console terminal. The backspace key sends ^? so you are
seeing it because it's not mapped to 'erase'.
More information about the freebsd-questions