4 * Copyright (c) 2008 James McKenzie <james@fishsoup.dhs.org>,
9 static char rcsid[] = "$Id$";
13 * Revision 1.14 2008/02/27 09:55:57 james
14 * *** empty log message ***
16 * Revision 1.13 2008/02/27 09:42:53 james
17 * *** empty log message ***
19 * Revision 1.12 2008/02/27 09:42:21 james
20 * *** empty log message ***
22 * Revision 1.11 2008/02/27 01:31:38 james
23 * *** empty log message ***
25 * Revision 1.10 2008/02/27 01:31:14 james
26 * *** empty log message ***
28 * Revision 1.9 2008/02/24 00:43:55 james
29 * *** empty log message ***
31 * Revision 1.8 2008/02/24 00:42:53 james
32 * *** empty log message ***
34 * Revision 1.7 2008/02/23 11:48:52 james
35 * *** empty log message ***
37 * Revision 1.6 2008/02/20 18:49:11 staffcvs
38 * *** empty log message ***
40 * Revision 1.5 2008/02/20 18:31:44 james
41 * *** empty log message ***
43 * Revision 1.4 2008/02/20 17:18:33 james
44 * *** empty log message ***
46 * Revision 1.3 2008/02/20 02:11:35 james
47 * *** empty log message ***
49 * Revision 1.2 2008/02/16 10:58:52 james
50 * *** empty log message ***
52 * Revision 1.1 2008/02/16 01:30:56 james
53 * *** empty log message ***
64 fprintf (stderr, "Usage:\n"
65 "sympathy -t [-K] [-d serialdev|-p] [-b baud] [-f] [-L log] [-u]\n"
66 "sympathy -s [-K] [-d serialdev|-p] [-b baud] [-f] [-L log] [-u] [-k skt]\n"
67 " [-n hlines] [-w WxH] [-F]\n"
68 "sympathy [-s -c] [-K] [-d serialdev|-p] [-b baud] [-f] [-L log] [-u] [-k skt]\n"
69 " [-n hlines] [-w WxH]\n"
70 "sympathy -c [-H] [-u] -k skt\n"
71 "sympathy -r id [-H] [-u]\n"
77 " -t terminal emulator mode: one process is started which reads from\n"
78 " the serial device or ptty and writes to the user's terminal.\n"
79 " -s server mode: a process is started (and daemonized unless -F is\n"
80 " given) which listens on a socket, and reads from the serial\n"
82 " -s -c server and client mode: Fork a server and connect a client\n"
83 " incompatible with -F. This is the default mode\n"
84 " -c client mode: connect to server mode process\n"
85 " -r id client mode: connect to server mode process on socket\n"
87 " -l or -ls list active sockets in ~/.sympathy\n"
92 " -K lock the serial device. By default sympathy checks that no\n"
93 " other process has created a lock file, and temporarily ceases\n"
94 " to access the serial port if it spots one. With this option\n"
95 " sympathy creates a lock file and prevents other programs\n"
96 " accessing the serial port. Incompatible with -p\n"
97 " -d serialdev the serial device to connect to, eg /dev/ttyS0\n"
98 " -p fork a login shell in a ptty and connect to that rather than\n"
99 " connect to a serial port. This option is the default if\n"
100 " no -d option is specified\n"
101 " -b baud the baudrate to set. If omitted sympathy does not set\n"
102 " a baudrate and uses the current setting\n"
103 " -f set RTS/CTS flowcontrol. By default sympathy disables flow\n"
105 " -k socket explicity set the name of the socket, by default\n"
106 " sympathy will use ~/.sympathy/$pid\n"
107 " -F do not detach, run the server in the foreground\n"
108 " -H instead of connecting the user's terminal to the session\n"
109 " emit HTML of the current state of the screen on stdout\n"
110 " -L log log activity on the device to the file log\n"
111 " -n hlines the number of lines of history to store in the\n"
112 " server, that are replayed on connexion\n"
113 " -u don't emit utf-8 try to use ISO-2202 to the local terminal\n"
114 " -w W[xH] start session with a screen of size W by H. 0<W<=132,\n"
115 " 0<H<24, default 80 by 24\n"