Skip to content
Snippets Groups Projects
Commit bb0bd64e authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Add VSWTC

Only on Linux, Documented as VSWTCH (also added), as a SysV-only
thing but actually defined a VSWTC, must be disabled (ie: set to
_POSIX_DISABLE) to not show up in stty as being modified.

*sigh*

I'm not convinced Linux developers want termios to work.
parent ab3f0971
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4332 failed
...@@ -38,7 +38,11 @@ ...@@ -38,7 +38,11 @@
#define CEOF CTRL('d') #define CEOF CTRL('d')
#endif #endif
#ifndef CEOL #ifndef CEOL
#ifndef _POSIX_VDISABLE
#define CEOL 0xff /* XXX avoid _POSIX_VDISABLE */ #define CEOL 0xff /* XXX avoid _POSIX_VDISABLE */
#else
#define CEOL _POSIX_VDISABLE
#endif
#endif #endif
#ifndef CERASE #ifndef CERASE
#define CERASE 0177 #define CERASE 0177
...@@ -103,6 +107,14 @@ ...@@ -103,6 +107,14 @@
#define CFLUSH CDISCARD #define CFLUSH CDISCARD
#endif #endif
#ifndef CSWTC
#ifndef _POSIX_VDISABLE
#define CSWTC 0xff /* XXX avoid _POSIX_VDISABLE */
#else
#define CSWTC _POSIX_VDISABLE
#endif
#endif
#ifndef TTYDEF_IFLAG #ifndef TTYDEF_IFLAG
#ifndef IMAXBEL #ifndef IMAXBEL
#define TTYDEF_IFLAG (BRKINT | ICRNL | IXON | IXANY) #define TTYDEF_IFLAG (BRKINT | ICRNL | IXON | IXANY)
...@@ -401,6 +413,12 @@ pty_connect(struct bbslist *bbs) ...@@ -401,6 +413,12 @@ pty_connect(struct bbslist *bbs)
#ifdef VMIN #ifdef VMIN
ts.c_cc[VMIN] = CMIN; ts.c_cc[VMIN] = CMIN;
#endif #endif
#ifdef VSWTCH
ts.c_cc[VSWTCH] = CSWTCH;
#endif
#ifdef VSWTC
ts.c_cc[VSWTC] = CSWTC;
#endif
#ifdef VEOF #ifdef VEOF
ts.c_cc[VEOF] = CEOF; ts.c_cc[VEOF] = CEOF;
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment