bugGNU Screen - Bugs: bug #23952, Screen can't set stop/parity bits...

 
 

bug #23952: Screen can't set stop/parity bits on serial

Submitter:  Micah Cowan <micahcowan>
Submitted:  Mon 28 Jul 2008 07:33:20 PM UTC
Votes: 100
 
Category:  Program Logic Severity:  2 - Minor
Priority:  * 5 - Normal Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Release:  None
Fixed Release:  4.9.1 Planned Release:  4.9.1
Work Required:  1 - Days
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 16 Feb 2022 03:47:18 PM UTC, comment #3: 

Thanks! It's in screen-v4 branch now (planned release 4.9.1).
Please test it again ;-)

Cheers,
Alex

Alexander Naumov <anaumov>
Group administrator
Tue 23 Nov 2021 03:00:09 PM UTC, comment #2: 

David Kerns was so kind to quickly hack up the patches. I have tested them, they work.

Please consider taking those for a future release.

Marc Haber <zugschlus>
Sun 21 Nov 2021 02:54:08 PM UTC, comment #1: 

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.

Marc Haber <zugschlus>
Mon 28 Jul 2008 07:33:20 PM UTC, original submission:  
Micah Cowan <micahcowan>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #52332:  tty.sh.patch added by zugschlus (1KiB - text/x-patch - Here are patches by david kerns. Tested by me, they work. Please consider applying.)
file #52333:  doc_patch added by zugschlus (1KiB - application/octet-stream - Here are patches by david kerns. Tested by me, they work. Please consider applying.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by anaumov (Posted a comment)
  • -email is unavailable- added by zugschlus (Posted a comment)
  • -email is unavailable- added by bwildenhain (Voted in favor of this item)
  • -email is unavailable- added by micahcowan (Submitted the item)
  •  

    There are 100 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-08-18 anaumov StatusReady For Test Fixed
        Open/ClosedOpen Closed
        Fixed ReleaseNone 4.9.1
    2022-02-16 anaumov StatusNeed Investigation Ready For Test
        Planned ReleaseLater 4.9.1
    2021-11-23 zugschlus Attached File- Added tty.sh.patch, #52332
        Attached File- Added doc_patch, #52333
    2013-06-10 bwildenhain Carbon-Copy- Added bwildenhain

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code