X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=unix%2Fuxcfg.c;h=c7d8d5fb0089f3a54b493ec0a0f316801c8e82a6;hb=12e019bafc75cb441e965c63e15dfceeaf71ca1e;hp=6629bd9499e4f889fde69a18476fa2fc3bb3e449;hpb=b75856edfa23176be5cf9d9672cebb3ec060173b;p=PuTTY.git diff --git a/unix/uxcfg.c b/unix/uxcfg.c index 6629bd94..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 *win) +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, void *win) } } + /* + * 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); }