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)
This commit is contained in:
Hidetoshi Shimokawa 2007-07-12 13:08:00 +00:00
parent 07cb08fd48
commit 3992d42ce0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=171397

View File

@ -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);