From 3992d42ce040c54de4061b7c93c6ab04b4717c14 Mon Sep 17 00:00:00 2001 From: Hidetoshi Shimokawa Date: Thu, 12 Jul 2007 13:08:00 +0000 Subject: [PATCH] Set the default escape character as described in the manpage of dconschat(8). Fix a cut-and-paste error. Spotted by: avatar Approved by: re (rwatson) --- usr.sbin/dconschat/dconschat.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usr.sbin/dconschat/dconschat.c b/usr.sbin/dconschat/dconschat.c index 9796e374e8a3..4334cf81cefb 100644 --- a/usr.sbin/dconschat/dconschat.c +++ b/usr.sbin/dconschat/dconschat.c @@ -1006,6 +1006,9 @@ main(int argc, char **argv) port[0] = 0; /* stdin/out for console */ port[1] = -1; /* disable gdb port */ + /* default escape char */ + dc->escape = KEY_TILDE; + while ((ch = getopt(argc, argv, "a:be:h:rt:u:vwC:G:M:N:RT1")) != -1) { switch(ch) { case 'a': @@ -1016,7 +1019,7 @@ main(int argc, char **argv) dc->flags |= F_ALT_BREAK; break; case 'e': - dc->escape |= optarg[0]; + dc->escape = optarg[0]; break; case 'h': poll_hz = strtoul(optarg, NULL, 0);