chiark / gitweb /
*** empty log message ***
[sympathy.git] / sympathy.1
index af1bff442f2bb528e792f19739e9ac3ad1a22adb..7a7e436277d35b8335104133fc47508b8667c1af 100644 (file)
@@ -82,7 +82,7 @@ of any line on the frame buffer as the cursor moves off it.
 .B \-t
 act as terminal emulator only:
 .I sympathy
-opens the terminal device and outputs into the outer terminal emulator, when sympathy exits the 
+opens the terminal device and outputs into the outer terminal emulator. When sympathy exits the 
 device is closed and no process remains. In this mode sympathy behaves like a traditional
 terminal emulator such as cu(1) or minicom(1).
 .TP 5
@@ -90,7 +90,7 @@ terminal emulator such as cu(1) or minicom(1).
 act as server only:
 .I sympathy
 opens the terminal device and renders into an internal frame buffer, listens for clients
-on the socket and logs activity. By default the server will fork into a daemon processes
+on the socket and logs activity. By default the server will fork into a daemon process
 but can be forced to remain in the foreground with the \-\fBF\fP option.
 .TP 5
 .B \-c\fP or \fB\-r\fP \fIid\fP
@@ -181,7 +181,7 @@ log activity to the file \fIlogfile\fP. If \fIlogfile\fP is `-' then log to \fIs
 that logging to \fIstdout\fP only makes sense with the \-\fBF\fP \fIserver_option\fP. 
 .TP 5
 .B \-w \fIwidth\fP[x\fIheight\fP]
-set the initialise size of the terminal emulator's frame buffer to be \fIwidth\fP columns
+set the initial size of the terminal emulator's frame buffer to be \fIwidth\fP columns
 by \fIheight\fP rows. If \fIheight\fP is omitted it defaults to 24, the default width
 is 80. These values may
 be overridden later by terminal escape sequences. If \-\fBp\fP is also specified
@@ -313,29 +313,41 @@ emulator (usually by pressing CTRL\-B), typing the command and pressing return.
 command is entered the status line changes to `:' and rudimentary line editing is available.
 Whilst the command is entered the cursor \fBdoes not move\fP but remains where the terminal
 emulator has placed it. Valid commands are:
-.TP 5
+.TP 7
 .B ansi
 switch from VT102 behaviour to ANSI behaviour. The most noticeable difference is 
 the so called `xn' glitch.
-.TP 5
+.TP 7
 .B noansi
 switch from ANSI behaviour to VT102 behaviour.
-.TP 5
+.TP 7
 .B baud \fInnnn\fB
 set the current baud\-rate to nnnn
-.TP 5
-.B break \fInnnn\fB
+.TP 7
+.B break
 send the break signal by asserting the TX line for longer than a frame period.
-.TP 5
+.TP 7
 .B flow
 enable RTS/CTS flow control
-.TP 5
+.TP 7
 .B noflow
 disable RTS/CTS flow control
-.TP 5
+.TP 7
 .B hangup
 de-assert DTR for one second.
-.TP 5
+.TP 7
+.B width \fInn\fB
+set the current width of the screen to \fInn\fP, and reset the terminal emulator.
+.TP 7
+.B height \fInn\fB
+set the current height of the screen to \fInn\fP, and reset the terminal emulator.
+.TP 7
+.B reset
+reset the terminal emulator
+.TP 7
+.B expand
+expand the size of the screen to fit the size of the current outer terminal emulator window
+.TP 7
 .B quit
 exit this instance of sympathy (disconnect from the server if present)
 .SH CHARACTER ENCODINGS
@@ -349,23 +361,26 @@ will be interpreted as the one byte CSI character.
 .PP
 For the outer terminal emulator sympathy by default issues the 
 ESC % G sequence to select UTF\-8 mode and emits valid UTF-8. If the outer terminal
-does not, however, support UTF\-8 use the \-\fBu\fI switch to force 
+does not, however, support UTF\-8 use the \-\fBu\fP switch to force 
 .I sympathy 
 to use the VT102 subset of ISO-2202.
 .SH LOG FILES
 Log files are made exclusively in the UTF\-8 encoding. Each line in the log file
 starts with the date and time at which the entry was made \- for example:
-.br
+.IP
 Feb 27 23:24:42.509440
-.br
+.PP
 .I Sympathy
 logs a line to the file whenever the cursor leaves the line. Additionally sympathy
-logs certain other events to the file when the baud\-rate is changed 
+logs certain other events to the file. When the baud\-rate is changed 
 .I sympathy
 writes  <baud changed to 19200>. Whenever a modem control line changes state 
 .I sympathy
-appends <Modem lines changed: \fI+/-line\fP> to the log. Where \fI+\fP
+appends <Modem lines changed: \fI+/\-line\fP ...> to the log. Where \fI+\fP
 indicates that \fIline\fP was asserted and \fI-\fP indicates that it was de-asserted.
+.I Sympathy 
+writes a message of the form <size now nnnxnnn> whenever the screen size is
+changed, either by escape sequences, or via a user command.
 When the terminal device reports receive errors 
 .I sympathy 
 adds additional information to the log. It reports the character sequence reporting the error
@@ -384,15 +399,18 @@ Invalid UTF\-8 sequences are also reported
 .IP
 <invalid utf\-8 sequence: \\301>
 .SH ENVIRONMENT
-.I sympathy uses the \fBHOME\fI environment variable to determine the default
-location for sockets.  .br
-.I sympathy sets the value of \fBTERM\fI in pseudo-ttys spawned using the
+.I sympathy 
+uses the \fBHOME\fP environment variable to determine the default
+location for sockets.
+.br
+.I sympathy 
+sets the value of \fBTERM\fP in pseudo-ttys spawned using the
 \-\fBp\fP argument to `xterm'
 .SH EMULATION
 .I Sympathy
 completely emulates a VT102 terminal (including the VT52 emulation). 
 .I Sympathy 
-also emulates a few extra sequences: the xterm(1) CSI ] ... sequences, and 
+also emulates a few extra sequences: the xterm(1) ESC ] ... sequences, and 
 the ANSI CSI @ and CSI b sequences. The numeric keypad follows exactly the
 sequences produced by an xterm rather than the exact VT102/VT220 sequences.
 .I Sympathy
@@ -419,9 +437,10 @@ For a \fBnull modem\fP cable local DSR and DTR are wired to remote CD, local
 CTS to remote RTS, and local RTS to remote CTS. Thus asserting local DTR
 asserts local DSR and remote CD, and asserting local RTS asserts remote CTS.
 .PP
-When RTS/CTS flow control is in operation the operating system or the hardware
-de-asserts RTS when its buffer becomes full causing (via the DCEs or the null
-modem cable) a de-assertion of remote CTS which causes the remote to cease transmission.
+When RTS/CTS flow control is in operation and the receive buffer becomes full,
+the operating system, or the hardware, de-asserts RTS, causing (via the DCEs or
+the null modem cable) a de-assertion of remote CTS which in turn causes the
+remote DTE to cease transmission.
 .SH EXAMPLES
 .PP 
 using sympathy to mimic screen(1):
@@ -436,7 +455,7 @@ either hangs up on the client or issues CTRL\-B quit, and the client detaches fr
 the server.
 .IP
 Later the user wishes to retrieve her session and to determine which sympathy
-sessions are active issues:
+sessions are active and issues:
 .IP
 [foo@barhost ~]$ sympathy \-ls
 .br
@@ -470,10 +489,10 @@ becomes a daemon and detaches from the current tty. It then opens the device
 /dev/ttyS13 and locks it, sets the baud\-rate to 19200 baud and disables flow
 control. 
 .I Sympathy
-then listens for clients connecting on the socket \-fI/root/sympathy/13-fP, whilst logging 
-completed lines and changes in status to the file /root/sympathy/13.log.
+then listens for clients connecting on the socket \fI/root/sympathy/13\fP, whilst logging 
+completed lines and changes in status to the file \fI/root/sympathy/13.log\fP.
 .IP
-A user wishing to see the current status of the /dev/ttyS13 issues:
+A user wishing to see the current status of /dev/ttyS13 issues:
 .IP
 [foo@barhost ~]$ sympathy \-c \-k /root/sympathy/13 
 .IP
@@ -487,14 +506,18 @@ ANSI X3.64, ISO-6429, ECMA-48, ISO-2202, ISO-8859, ISO-10646, Digital Equipment
 .SH BUGS
 .PD
 .IP \(bu 3
-the command line editor and parser should support better line editing and report failed commands
+The command editor and parser should support better line editing.
 .IP \(bu 3
-when the \-\fBc\fP \-\fBs\fP major mode is used without the \-\fBk\fP option the pid
+It should be possible to change the escape character.
+.IP \(bu 3
+When the \-\fBc\fP \-\fBs\fP major mode is used without the \-\fBk\fP option the pid
 used in the socket is that of the client process and therefore not unique.
 .IP \(bu 3
-the HTML generated with the \-\fBH\fP option is ugly.
+The HTML generated with the \-\fBH\fP option is ugly.
 .IP \(bu 3
-no useful error message is generated if opening the terminal device fails in  the
+No useful error message is generated if opening the terminal device fails in  the
 \-\fBc\fP \-\fBs\fP major mode.
+.IP \(bu 3
+No facility is made for rotation of the log files.
 .SH AUTHOR
 James McKenzie, james@fishsoup.dhs.org