1
0
mirror of https://github.com/UzixLS/picocom.git synced 2025-07-19 07:21:18 +03:00

Allow non-alpha escape keys (e.g. C-])

Thanks Niels Moller
This commit is contained in:
Nick Patavalis
2010-05-28 01:34:18 +00:00
parent 8a48fc24aa
commit 035f65fe4d

View File

@ -841,10 +841,7 @@ parse_args(int argc, char *argv[])
opts.nolock = 1;
break;
case 'e':
if ( isupper(optarg[0]) )
opts.escape = optarg[0] - 'A' + 1;
else
opts.escape = optarg[0] - 'a' + 1;
opts.escape = optarg[0] & 0x1f;
break;
case 'f':
switch (optarg[0]) {