Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Feb 2013 13:23:08 +0100
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        s m <sperado_nada@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: backspace shows ^? in serial communication
Message-ID:  <20130228122307.GA15927@saturn>
In-Reply-To: <1361950827.74767.YahooMailClassic@web142502.mail.bf1.yahoo.com>
References:  <1361950827.74767.YahooMailClassic@web142502.mail.bf1.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2013-02-26 23:40, s m <sperado_nada@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?

Just run:

    stty erase '^?'

in your serial console terminal.  The backspace key sends ^? so you are
seeing it because it's not mapped to 'erase'.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130228122307.GA15927>