backspace shows ^? in serial communications

Robert Bonomi bonomi at mail.r-bonomi.com
Wed Feb 6 11:40:00 UTC 2013


> From owner-freebsd-questions at freebsd.org  Wed Feb  6 00:19:04 2013
> Date: Wed, 6 Feb 2013 09:44:37 +0330
> Subject: backspace shows ^? in serial communications
> From: s m <sam.gh1986 at gmail.com>
> To: freebsd-questions <freebsd-questions at freebsd.org>
>
> hi all
>
> i have a problem with backspace in serial communications. i have a
> freebsd8.2 box with a serial card on it. when i connect to other freebsd
> box via serial port backspace does not act as i expected. backspace shows
> ^? on screen. i searched alot and find out that stty has two parameters
> -erase and erase2- to identify erase characters in terminal and they should
> be set correctly. i set erase and erase2 to ^? by "stty erase \^?" and
> "stty erase2 \^?" commands but nothing happened.
> please let me know how i can fix it. i know it is simple issue but i really
> do not know how to do that.

  stty erase {press the backspace key}

Then hit the enter/return key


More information about the freebsd-questions mailing list