mirror of
https://repo.or.cz/socat.git
synced 2025-07-27 13:02:57 +00:00
Added option rawer for pty
This commit is contained in:
parent
8c8f817780
commit
522bb45479
6 changed files with 24 additions and 3 deletions
10
xioopts.c
10
xioopts.c
|
@ -1196,6 +1196,7 @@ const struct optname optionnames[] = {
|
|||
IF_TERMIOS("quit", &opt_vquit)
|
||||
IF_RANGE ("range", &opt_range)
|
||||
IF_TERMIOS("raw", &opt_raw)
|
||||
IF_TERMIOS("rawer", &opt_termios_rawer)
|
||||
IF_SOCKET ("rcvbuf", &opt_so_rcvbuf)
|
||||
IF_SOCKET ("rcvbuf-late", &opt_so_rcvbuf_late)
|
||||
#ifdef SO_RCVLOWAT
|
||||
|
@ -1623,6 +1624,8 @@ const struct optname optionnames[] = {
|
|||
IF_IPAPP ("tcpwrapper", &opt_tcpwrappers)
|
||||
IF_IPAPP ("tcpwrappers", &opt_tcpwrappers)
|
||||
#endif
|
||||
IF_TERMIOS("termios-cfmakeraw", &opt_termios_cfmakeraw)
|
||||
IF_TERMIOS("termios-rawer", &opt_termios_rawer)
|
||||
#ifdef O_TEXT
|
||||
IF_ANY ("text", &opt_o_text)
|
||||
#endif
|
||||
|
@ -3647,6 +3650,13 @@ int applyopts(int fd, struct opt *opts, enum e_phase phase) {
|
|||
termarg.c_cc[VMIN] = 1;
|
||||
termarg.c_cc[VTIME] = 0;
|
||||
break;
|
||||
case OPT_TERMIOS_RAWER:
|
||||
termarg.c_iflag = 0;
|
||||
termarg.c_oflag = 0;
|
||||
termarg.c_lflag = 0;
|
||||
termarg.c_cc[VMIN] = 1;
|
||||
termarg.c_cc[VTIME] = 0;
|
||||
break;
|
||||
case OPT_SANE:
|
||||
/* cread -ignbrk brkint -inlcr -igncr icrnl
|
||||
-ixoff -iuclc -ixany imaxbel opost -olcuc -ocrnl
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue