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 @@
#define CEOF CTRL('d')
#endif
#ifndef CEOL
#define CEOL 0xff /* XXX avoid _POSIX_VDISABLE */
#ifndef _POSIX_VDISABLE
#define CEOL 0xff /* XXX avoid _POSIX_VDISABLE */
#else
#define CEOL _POSIX_VDISABLE
#endif
#endif
#ifndef CERASE
#define CERASE 0177
......@@ -103,6 +107,14 @@
#define CFLUSH CDISCARD
#endif
#ifndef CSWTC
#ifndef _POSIX_VDISABLE
#define CSWTC 0xff /* XXX avoid _POSIX_VDISABLE */
#else
#define CSWTC _POSIX_VDISABLE
#endif
#endif
#ifndef TTYDEF_IFLAG
#ifndef IMAXBEL
#define TTYDEF_IFLAG (BRKINT | ICRNL | IXON | IXANY)
......@@ -401,6 +413,12 @@ pty_connect(struct bbslist *bbs)
#ifdef VMIN
ts.c_cc[VMIN] = CMIN;
#endif
#ifdef VSWTCH
ts.c_cc[VSWTCH] = CSWTCH;
#endif
#ifdef VSWTC
ts.c_cc[VSWTC] = CSWTC;
#endif
#ifdef VEOF
ts.c_cc[VEOF] = CEOF;
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment