Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Feb 2013 18:28:53 +0330
From:      s m <sam.gh1986@gmail.com>
To:        Robert Bonomi <bonomi@mail.r-bonomi.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: backspace shows ^? in serial communications
Message-ID:  <CAA_1SgF4RiE5bYUKES3P6K07DrSGLVi%2B_7UpoRtP7bFMfO3Ytg@mail.gmail.com>
In-Reply-To: <201302061143.r16Bhnx2016113@mail.r-bonomi.com>
References:  <CAA_1SgEi27zfihTopo6BfQ2fr_sBUew4u3M0Y1oV67c=bDQ5Cw@mail.gmail.com> <201302061143.r16Bhnx2016113@mail.r-bonomi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
thanks Robert,
i try it before but nothing happened.
do you know how i can set erase and erase2 for stty via termios structure?
and what should be their value to backspace correct well?

On Wed, Feb 6, 2013 at 3:13 PM, Robert Bonomi <bonomi@mail.r-bonomi.com>wrote:

> > From owner-freebsd-questions@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@gmail.com>
> > To: freebsd-questions <freebsd-questions@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
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAA_1SgF4RiE5bYUKES3P6K07DrSGLVi%2B_7UpoRtP7bFMfO3Ytg>