4 * Copyright (c) 2008 James McKenzie <james@fishsoup.dhs.org>,
9 static char rcsid[] = "$Id$";
13 * Revision 1.6 2008/02/20 18:49:11 staffcvs
14 * *** empty log message ***
16 * Revision 1.5 2008/02/20 18:31:44 james
17 * *** empty log message ***
19 * Revision 1.4 2008/02/20 17:18:33 james
20 * *** empty log message ***
22 * Revision 1.3 2008/02/20 02:11:35 james
23 * *** empty log message ***
25 * Revision 1.2 2008/02/16 10:58:52 james
26 * *** empty log message ***
28 * Revision 1.1 2008/02/16 01:30:56 james
29 * *** empty log message ***
40 fprintf (stderr, "Usage:\n"
41 "sympathy -t [-K] [-d serialdev|-p] [-b baud] [-f] [-L log]\n"
42 "sympathy -s [-K] [-d serialdev|-p] [-b baud] [-f] [-L log] [-F] [-k skt]\n"
44 "sympathy [-s -c] [-K] [-d serialdev|-p] [-b baud] [-f] [-L log] [-k skt]\n"
46 "sympathy -c [-H] -k skt\n"
47 "sympathy -r id [-H]\n"
52 " -t terminal emulator mode: one process is started which reads from\n"
53 " the serial device or ptty and writes to the users terminal.\n"
54 " -s server mode: a process is started (and daemonized unless -F is\n"
55 " given) which listens on a socket, and reads from the serial\n"
57 " -s -c server and client mode. Fork a server and connect a client\n"
58 " incompatible with -F. This is the default mode\n"
59 " -c client mode: connect to server mode process\n"
60 " -r id client mode: connect to server mode process on socket\n"
62 " -l or -ls list active sockets in ~/.sympathy\n"
65 " -K lock the serial device. By default sympathy checks that no\n"
66 " other process has create a lock file, and temporarily ceases\n"
67 " to access the serial port if it spots one. With this option\n"
68 " sympathy creates a lock file and prevents other programs\n"
69 " accessing the serial port. Incompatible with -p\n"
70 " -d serialdev the serial device to connect to, eg /dev/ttyS0\n"
71 " -p fork a login shell in a pty and connect to that rather than\n"
72 " connect to a serial port. This option is the default if\n"
73 " no -d option is specified\n"
74 " -b baud the baudrate to set. If omitted sympathy does not set\n"
75 " a baudrate and uses the current setting\n"
76 " -f set RTS/CTS flowcontrol. By default sympathy disables flow\n"
78 " -k socket explicity set the name of the socket, by default\n"
79 " sympathy will use ~/.sympathy/$pid\n"
80 " -F do not detach, run the server in the foreground\n"
81 " -H instead of connecting the user's terminal to the session\n"
82 " emit HTML of the current state of the screen on stdout\n"
83 " -L log activity on the device to the file log\n"
84 " -n hlines the number of lines of history to store in the\n"
85 " server, that are replayed on connexion\n"