blob: c0b81f376b052fd7a11d3a8f27761b35d7c188ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
/*
* usage.c:
*
* Copyright (c) 2008 James McKenzie <james@fishsoup.dhs.org>,
* All rights reserved.
*
*/
static char rcsid[] = "$Id$";
/*
* $Log$
* Revision 1.2 2008/02/16 10:58:52 james
* *** empty log message ***
*
* Revision 1.1 2008/02/16 01:30:56 james
* *** empty log message ***
*
*/
void
usage (void)
{
fprintf (stderr, "Usage:\n"
"sympathy -t [-l] [-d serialdev|-p] [-b baud] [-h] [-L log]\n"
"sympathy -s [-l] [-d serialdev|-p] [-b baud] [-h] [-L log] [-f] [-k skt]\n"
"sympathy [-s -c] [-l] [-d serialdev|-p] [-b baud] [-h] [-L log] [-k skt]\n"
"sympathy -c [-H] -k skt\n"
"sympathy -r id [-H]\n"
"\n"
"Main mode:\n"
" -t terminal emulator mode: one process is started which reads from\n"
" the serial device or ptty and writes to the users terminal.\n"
" -s server mode: a process is started (and daemonized unless -f is\n"
" given) which listens on a socket, and reads from the serial\n"
" device or ptty.\n"
" -s -c server and client mode. Fork a server and connect a client\n"
" incompatible with -f. This is the default mode\n"
" -c client mode: connect to server mode process\n"
" -r id client mode: connect to server mode process on socket\n"
" ~/.sympathy/id\n"
"\n"
"Options:\n"
" -l lock the serial device. By default sympathy checks that no\n"
" other process has create a lock file, and temporarily ceases\n"
" to access the serial port if it spots one. With this option\n"
" sympathy creates a lock file and prevents other programs\n"
" accessing the serial port. Incompatible with -p\n"
" -d serialdev the serial device to connect to, eg /dev/ttyS0\n"
" -p fork a login shell in a pty and connect to that rather than\n"
" connect to a serial port. This option is the default if\n"
" no -d option is specified\n"
" -b baud the baudrate to set. If omitted sympathy does not set\n"
" a baudrate and uses the current setting\n"
" -h set RTS/CTS flowcontrol. By default sympathy disables flow\n"
" control\n"
" -k socket explicity set the name of the socket, by default\n"
" sympathy will use ~/.sympathy/$pid\n"
" -f do not detach, run the server in the foreground\n"
" -H instead of connecting the user's terminal to the session\n"
" emit HTML of the current state of the screen on stdout\n"
" -L log activity on the device to the file log\n");
exit (1);
}
|