bug-ncurses
[Top][All Lists]
Advanced

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

Reset clears CLOCAL flag breaking some hardware serial ports


From: Michal Suchanek
Subject: Reset clears CLOCAL flag breaking some hardware serial ports
Date: Wed, 4 Oct 2023 10:40:35 +0000

Hello,

on some development boards and server BMCs the hardware apparently
lacks the modem control lines.

The OS correctly sets the CLOCAL flag and the terminal works. However,
when there is a need to reset the terminal after adjusting the TERM
variable the reset tool clears the CLOCAL flag. This is not documented
in the man page nor can I see any reason in the git history why this
functionality was added (in ncurses 4.1 AFAICS).

On the affected devices (such as Raspberry Pi) the symptom is that
terminal applications using the alternate screen such as less or vim
keep waiting in the kernel and never start.

I don't think that the CLOCAL flag is part of what the reset tool
should change much like the terminal baud rate - this is property of
how the terminal is connected, and not the terminal type.

Thanks

Michal



reply via email to

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