diff options
| author | christos <christos@NetBSD.org> | 2016-01-03 15:38:29 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2016-01-03 15:38:29 +0000 |
| commit | 15f60b3dd9be76907303777d68a87d7d3c8d4160 (patch) | |
| tree | 0d8bf43c432a959727350487c836a5b322bd99f4 /usr.bin/tip | |
| parent | cf3be17c17345e444f269e1bfaa98f9ab9f31cd9 (diff) | |
Put back -n
Diffstat (limited to 'usr.bin/tip')
| -rw-r--r-- | usr.bin/tip/cu.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/usr.bin/tip/cu.c b/usr.bin/tip/cu.c index 2d7d0b58468..fbedefeeb5c 100644 --- a/usr.bin/tip/cu.c +++ b/usr.bin/tip/cu.c @@ -1,4 +1,4 @@ -/* $NetBSD: cu.c,v 1.22 2014/07/27 04:32:23 dholland Exp $ */ +/* $NetBSD: cu.c,v 1.23 2016/01/03 15:38:29 christos Exp $ */ /* * Copyright (c) 1983, 1993 @@ -36,7 +36,7 @@ #if 0 static char sccsid[] = "@(#)cu.c 8.1 (Berkeley) 6/6/93"; #endif -__RCSID("$NetBSD: cu.c,v 1.22 2014/07/27 04:32:23 dholland Exp $"); +__RCSID("$NetBSD: cu.c,v 1.23 2016/01/03 15:38:29 christos Exp $"); #endif /* not lint */ #include "tip.h" @@ -54,7 +54,7 @@ cumain(int argc, char *argv[]) int parity = 0; /* 0 is no parity */ int flow = -1; /* -1 is "tandem" ^S/^Q */ static int helpme = 0, nostop = 0; - char useresc = '~'; + int useresc = '~'; static char sbuf[12]; int cmdlineBR; extern char *optarg; @@ -84,7 +84,7 @@ cumain(int argc, char *argv[]) cmdlineBR = 0; while((c = getopt_long(argc, argv, - "E:F:P:a:p:c:l:s:hefot0123456789", longopts, NULL)) != -1) { + "E:F:P:a:p:c:l:ns:hefot0123456789", longopts, NULL)) != -1) { if (helpme == 1) cuhelp(); @@ -136,6 +136,9 @@ cumain(int argc, char *argv[]) else (void)asprintf(&DV, "/dev/%s", optarg); break; + case 'n': + useresc = -1; + break; case 's': BR = atoi(optarg); break; @@ -296,6 +299,7 @@ cuhelp(void) " -o: Use odd parity\n" " -P,--parity {even,odd,none}: use even, odd, no parity\n" " -l,--line line: Use this device (ttyXX)\n" + " -n: Disable escape character processing\n" " -s,--speed,--baud speed,-#: Use this speed\n" " -t: Connect via hard-wired connection\n"); exit(0); |
