|
|
0efa8c |
#include "ptycon_driver_impl.h"
|
|
|
0efa8c |
#include "argv/argv.h"
|
|
|
0efa8c |
|
|
|
0efa8c |
const struct argv_option ptyc_default_options[] = {
|
|
|
0efa8c |
{"version", 'v',TAG_VERSION,ARGV_OPTARG_NONE,0,0,0,
|
|
|
0efa8c |
"show version information"},
|
|
|
0efa8c |
|
|
|
0efa8c |
{"help", 'h',TAG_HELP,ARGV_OPTARG_OPTIONAL,0,"short|long",0,
|
|
|
0efa8c |
"show usage information [listing %s options only]"},
|
|
|
0efa8c |
|
|
|
f67c20 |
{"daemon", 0,TAG_DAEMON,ARGV_OPTARG_OPTIONAL,0,"default|always|never",0,
|
|
|
f67c20 |
"create a daemon thread and handle signals sent by the "
|
|
|
f67c20 |
"application's own controlling terminal. The default is "
|
|
|
f67c20 |
"to create a daemon thread when ptycon runs as a stand-alone "
|
|
|
f67c20 |
"program, and defer the task to the main utility in all other "
|
|
|
f67c20 |
"cases."},
|
|
|
f67c20 |
|
|
|
64c887 |
{"debug", 'd',TAG_DEBUG,ARGV_OPTARG_OPTIONAL,0,
|
|
|
64c887 |
"event|oven|raw",0,
|
|
|
64c887 |
"start an internal thread for debugging purposes. "
|
|
|
64c887 |
"event: display trace information for low-level console "
|
|
|
64c887 |
"events; oven|raw: start a pseudo client using a pty handle "
|
|
|
64c887 |
"in [cooked|raw] mode. default is 'event'."},
|
|
|
64c887 |
|
|
|
2de078 |
{"cat", 'c',TAG_CAT,ARGV_OPTARG_REQUIRED,0,0,"<file>",
|
|
|
2de078 |
"send %s to the terminal via the pty layer."},
|
|
|
2de078 |
|
|
|
e9e742 |
{"wait", 0,TAG_WAIT,ARGV_OPTARG_NONE,0,0,0,
|
|
|
e9e742 |
"wait on a dummy event upon invocation of ptycon_start(); "
|
|
|
e9e742 |
"this option has the sole purpose of rendering debub "
|
|
|
e9e742 |
"sessions with foreign debuggers more convenient, "
|
|
|
e9e742 |
"and must be the first command-line argument "
|
|
|
e9e742 |
"passed to the utility."},
|
|
|
e9e742 |
|
|
|
0efa8c |
{0,0,0,0,0,0,0,0}
|
|
|
0efa8c |
};
|