bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Regarding reset functionality


From: Sambu, Soumya
Subject: Re: Regarding reset functionality
Date: Wed, 6 Dec 2023 17:21:08 +0000

Hi Thomas,

Thanks for your response.

Below are the details -

a) version of ncurses - 6.4 stable version (v6.4)
b) platform used - Linux(Ubuntu-22.04)
c) results from "stty -a </dev/ttyS0" before/after - (Hung after reset)

# echo "hi " >> /dev/ttyS0
hi
# stty -a < /dev/ttyS0
speed 115200 baud; rows 34; columns 153; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;
werase = ^W; lnext = ^V; discard = ^O; min = 1; time = 0;
-parenb -parodd -cmspar cs8 hupcl -cstopb cread clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon ixoff -iuclc -ixany -imaxbel iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon -iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke -flusho -extproc
# reset
# echo "hi " >> /dev/ttyS0
^C
# stty -a < /dev/ttyS0
^C
#

Issue got resolved after upgrading ncurses to 20231104.
# echo "hi " >> /dev/ttyS0
hi
# reset
# echo "hi " >> /dev/ttyS0
hi

Thanks and Regards,
Soumya
 

From: Thomas Dickey <dickey@his.com>
Sent: Thursday, November 30, 2023 2:16 PM
To: Sambu, Soumya <Soumya.Sambu@windriver.com>
Cc: bug-ncurses@gnu.org <bug-ncurses@gnu.org>
Subject: Re: Regarding reset functionality
 
On Thu, Nov 30, 2023 at 03:10:35AM +0000, Sambu, Soumya wrote:
> Hi,
>
> This is regarding functionality of reset command . Based on my
> understanding, "reset" is used to initialize the terminal. But, after
> performing reset, any write to tty terminal is hung.

missing information:

a) version of ncurses
b) platform used
c) results from "stty -a </dev/ttyS0" before/after

> # echo "hi " >> /dev/ttyS0
> hi
> # reset
> # echo "hi " >> /dev/ttyS0
> ^C
> #

Possibly related:

20231104
+ modify reset command to avoid altering clocal if the terminal uses a
modem (prompted by discussion with Werner Fink, Michal Suchanek,
OpenSUSE #1201384, Debian #60377).

If that's it, then the issue belongs to whoever provided your reset command.

--
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net

reply via email to

[Prev in Thread] Current Thread [Next in Thread]