[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [screen-devel] [bug #23952] Screen can't set stop/parity bits on ser
Re: [screen-devel] [bug #23952] Screen can't set stop/parity bits on serial
Sun, 21 Nov 2021 20:46:08 -0700
and here's the man/texinfo patch
Here's a quick and dirty patch for 4.8.0 ... I didn't investigate if the BSD side allows those settings (it's BSD, screw'em)
Follow-up Comment #1, bug #23952 (project screen):
This has been lying around in the bug tracker for 13 years now. I'd like to
elaborate a bit on this:
The cereal program (https://tracker.debian.org/pkg/cereal) uses screen as a
terminal emulator to access serial devices such as routers, switches etc.
cereal's unique usage of screens allow device output to be captured
unattendedly, so that you can see the device's last output when attaching to
the session. This is a huge help when debugging on devices that usually run
unattended for months and then suddenly need attention.
Unfortunately, screen's handling of serial ports is somewhat incomplete: You
can set the baud rate and the word length (cs7), but not the number of stop
bits and/or the parity settings.
Since the OS calls are readily available, adding this to a future version of
screen would proably be easy enough to do inside tty.sh. Sadly, my C skills
lack to handle this code which is liberally sprinkled with portability
#ifdefs, so I cannot submit a patch.
Reply to this item at:
Message sent via Savannah
Description: Binary data