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:
parent
07cb08fd48
commit
3992d42ce0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=171397
@ -1006,6 +1006,9 @@ main(int argc, char **argv)
|
|||||||
port[0] = 0; /* stdin/out for console */
|
port[0] = 0; /* stdin/out for console */
|
||||||
port[1] = -1; /* disable gdb port */
|
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) {
|
while ((ch = getopt(argc, argv, "a:be:h:rt:u:vwC:G:M:N:RT1")) != -1) {
|
||||||
switch(ch) {
|
switch(ch) {
|
||||||
case 'a':
|
case 'a':
|
||||||
@ -1016,7 +1019,7 @@ main(int argc, char **argv)
|
|||||||
dc->flags |= F_ALT_BREAK;
|
dc->flags |= F_ALT_BREAK;
|
||||||
break;
|
break;
|
||||||
case 'e':
|
case 'e':
|
||||||
dc->escape |= optarg[0];
|
dc->escape = optarg[0];
|
||||||
break;
|
break;
|
||||||
case 'h':
|
case 'h':
|
||||||
poll_hz = strtoul(optarg, NULL, 0);
|
poll_hz = strtoul(optarg, NULL, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user