Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

backspace shows ^? in serial communication

2 views
Skip to first unread message

s m

unread,
Feb 27, 2013, 2:40:27 AM2/27/13
to
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?

any hints or comments are really appreciated.
nada
_______________________________________________
freebsd-...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"

Giorgos Keramidas

unread,
Feb 28, 2013, 7:23:08 AM2/28/13
to
On 2013-02-26 23:40, s m <sperad...@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'.
0 new messages