diff options
Diffstat (limited to 'zwgc/standard_ports.c')
-rw-r--r-- | zwgc/standard_ports.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/zwgc/standard_ports.c b/zwgc/standard_ports.c index 86edc87..7be6bb0 100644 --- a/zwgc/standard_ports.c +++ b/zwgc/standard_ports.c @@ -160,7 +160,7 @@ void init_standard_ports(pargc, argv) /* * Process argument list handling "-disable <port>" and - * "-default <output port>" arguments: + * "-default <output port>" arguments, as well as "-ttymode" */ for (new=current=argv+1; *current; current++) { if (string_Eq((string) *current, "-disable")) { @@ -174,7 +174,10 @@ void init_standard_ports(pargc, argv) if (!*current) usage(); default_port = (string) *current; - } else + } else if (string_Eq((string) *current, "-ttymode")) { + default_port = (string) "tty"; + (*pargc)--; + } else *(new++) = *current; } *new = *current; |