TIOCCONS
Takashi Yano
takashi.yano@nifty.ne.jp
Mon Apr 7 15:12:00 GMT 2025
On Mon, 07 Apr 2025 10:38:52 -0400
Andrew Schulman wrote:
> > On Sat, 05 Apr 2025 07:02:08 -0400
> > Andrew Schulman wrote:
> > > screen 5.0.0 now includes calls to TIOCCONS, like this:
> > >
> > > ioctl(consredirfd[1], TIOCCONS, (char *)&on)
> > >
> > > Since TIOCCONS seems not to be present in Cygwin, can someone please suggest
> > > what the equivalent would be?
> >
> > There is not default console on cygwin such as /dev/tty0 or /dev/console
> > on Linux. cygwin has /dev/console but it is an alias of current console
> > device such as /dev/cons0.
> >
> > So we cannot implement TIOCCONS in cygwin.
> >
> > What about commenting out the body of TtyGrabConsole() like:
> ...
> > Does something behaves wrong with that?
>
> Thanks. That's a good idea. Unfortunately when I try it screen hangs,
> unresponsive. Same result if I just comment out the call to ioctl().
>
> That might be because of the missing ioctl(), or it might be because of some
> other change since screen 4.9.1. Not sure. So I think my next stop is to ask
> the screen developers.
Hmm, in my environment, attached seem to work for me.
--
Takashi Yano <takashi.yano@nifty.ne.jp>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: screen.cygport
URL: <https://cygwin.com/pipermail/cygwin-apps/attachments/20250408/8477cc16/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: screen-etcscreenrc.patch
URL: <https://cygwin.com/pipermail/cygwin-apps/attachments/20250408/8477cc16/attachment-0001.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: screen-getpwnam.patch
URL: <https://cygwin.com/pipermail/cygwin-apps/attachments/20250408/8477cc16/attachment-0002.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: screen-no-TIOCCONS.patch
URL: <https://cygwin.com/pipermail/cygwin-apps/attachments/20250408/8477cc16/attachment-0003.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: screen-peercred.patch
URL: <https://cygwin.com/pipermail/cygwin-apps/attachments/20250408/8477cc16/attachment-0004.ksh>
More information about the Cygwin-apps
mailing list