## Flags

All flags can have their default values set by modifying `config.h`, additional info and configuration options are also available in the file

 * `--line|-l line` - line (device) to open, can be specified with `/dev/` or as just the device name
 * `--verbose|-v` - toggle verbose output
 * `--speed|-s # | -#` - set baudrate
 * `--rx-speed|-i` - set separate baudrate for RX line, same as TX if not set explicitly
 * `--data|-D bits` - set data bits
 * `--stop-bits|-S bits` - set stop bits 
 * `--software|-X` - toggle XON/XOFF flow control
 * `--delay|-d delay` - delay between sending characters (in nanoseconds)
 * `--min-chars|-m` - the minimal number of characters to start sending to the line
 * `--backspace|-b` - toggle between ASCII `DELETE` and `BACKSPACE` characters for backspace key
 * `--echo|-h` - toggle local echo (half-duplex mode)
 * `--canonical|-c` - toggle canonical mode (text can be edited locally before sending it to the line)

> If both even and odd parity flags are set, parity is disabled

 * `--odd|-o` - toggle odd parity
 * `--even|-e` - toggle even parity

> If both hardware flow control flags are set, DCD flow control is enabled

 * `--hardware-rts-cts|-R` - toggle RTS/CTS flow control
 * `--hardware-dtr-dsr|-r` - toggle DTR/DSR flow control

> Multiple translation options should be specified with multiple flags, e.g., `-t no-cr -t no-lf`  

 * `--translation|-t option` - CR and LF translation for data sent
 * `--input-translation|-T option` - CR and LF translation for data read

### Options:

 * `cr-to-lf`
 * `cr-in-lf` - CR to CRLF
 * `no-cr`
 * `lf-to-cr`
 * `lf-in-cr` - LF to CRLF
 * `no-lf`

## Interactive use

Special character (`~` by default, may be set in `config.h`) will be escaped if it's the first one in the buffer.

### Commands

 * `.` - drop connection and exit
 * `b` - toggle backspace character between the two
 * `h` - toggle local echo
 * `c` - toggle canonical mode
 * `s` - set new baudrate
 * `d` - set new character delay
 * `t|T` - toggle a translation option for output|input
 * `w` - write file contents to the line
 * `p` - send a DCD pulse
