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

Suppress help message if escape char is disabled

This commit is contained in:
Nick Patavalis
2017-12-17 22:43:54 +02:00
parent d1f439b38d
commit c48f6aa78e

View File

@ -1810,9 +1810,11 @@ main(int argc, char *argv[])
#endif
#ifndef NO_HELP
fd_pinfof(opts.quiet,
"Type [C-%c] [C-%c] to see available commands\r\n\r\n",
KEYC(opts.escape), KEYC(KEY_HELP));
if ( ! opts.noescape ) {
fd_pinfof(opts.quiet,
"Type [C-%c] [C-%c] to see available commands\r\n",
KEYC(opts.escape), KEYC(KEY_HELP));
}
#endif
fd_pinfof(opts.quiet, "Terminal ready\r\n");