X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/4838c7c65b8d42abce7cd95c8b7c5037072efb6b..f43e4b678f0b7aa847a3eeb3fab536058710d69f:/unix/uxcfg.c diff --git a/unix/uxcfg.c b/unix/uxcfg.c index 067fc7ed..c7d8d5fb 100644 --- a/unix/uxcfg.c +++ b/unix/uxcfg.c @@ -10,7 +10,7 @@ #include "dialog.h" #include "storage.h" -void unix_setup_config_box(struct controlbox *b, int midsession) +void unix_setup_config_box(struct controlbox *b, int midsession, int protocol) { struct controlset *s; union control *c; @@ -69,4 +69,12 @@ void unix_setup_config_box(struct controlbox *b, int midsession) } } + /* + * Serial back end is available on Unix. However, we have to + * mask out a couple of the configuration options: mark and + * space parity are not conveniently supported, and neither is + * DSR/DTR flow control. + */ + if (!midsession || (protocol == PROT_SERIAL)) + ser_setup_config_box(b, midsession, 0x07, 0x07); }