Commit graph

374 commits

Author SHA1 Message Date
Martin Lund
02729c10b1 Add support for remapping prefix key
Make it possible to remap the prefix key (default: ctrl-t) by setting
the prefix-ctrl-key variable in the configuration file.

Allowed values are in the range a..z.

Example, to set the prefix key to ctrl-a simply do:

prefix-ctrl-key = a
2022-07-15 12:18:40 +02:00
Martin Lund
00ae3b2fbd Update TODO 2022-07-14 11:13:22 +02:00
Rui Chen
223f0c5d13
fix compilation error
Signed-off-by: Rui Chen <rui@chenrui.dev>
2022-07-13 22:09:07 -04:00
Martin Lund
dfcda015c3 Add missing include 2022-07-12 22:27:42 +02:00
Martin Lund
a23be7f2c2 Simplify arbitrary baudrate code 2022-07-12 12:09:09 +02:00
Martin Lund
ac859f41b9 Cleanup error printing routines
Clean up so that only the following error related printing functions are
used: tio_error_printf(), tio_error_printf_silent(),
tio_warning_printf().

A session mode switch is introduced for error printing so that it will
print error messages with better formatting depending on in or out of
session.
2022-07-11 23:18:19 +02:00
Martin Lund
360deb3c72 Add support for space parity 2022-07-11 14:55:54 +02:00
Martin Lund
39af74f263 Rename EOL delay to Output line delay 2022-07-11 14:08:12 +02:00
Martin Lund
8b8dd373a7 Cleanup 2022-07-11 10:51:17 +02:00
Martin Lund
11762b2300 Replace -U,--upcase with mapping flag OLTU 2022-07-11 10:15:12 +02:00
Martin Lund
555e526ce7 Cleanup 2022-07-11 09:18:43 +02:00
Martin Lund
5b82c710f1 Simplify tty_write() 2022-07-11 09:12:56 +02:00
Robert Snell
f459a462c5 Fixed indentation in configfile.c, tty.c, options.c 2022-07-10 18:14:29 -04:00
Robert Snell
1c29aac9fa fixed indentation in configfile.c 2022-07-10 14:06:22 -04:00
Robert Snell
944ee9173b Additional commands: EOL delay, lower to upper translation, added mark parity
Added command line options:
-O, --eol-delay to have a separate delay for end of line
-U, --upper to enable translation of lower case alpha to upper case

Added ability to set mark parity.
Added ctrl-t U key sequence to allow enable/disable lower case alpha to
upper case during a session.
Updated Man page with command line options, ctrl-t sequences and
configuration file options.
Updated README.md, with above information.
2022-07-09 21:22:43 -04:00
George Joseph
f24cee61e7 Add Pulse DTR command
MCUs like the ESP32 can be reset if the serial port DTR line is
pulsed for a short time.  You could just type CTRL-t d CTRL-t d
but that's a little awkward since you have to lift your finger
off the CTRL key to type the Ds.  Now you can just type CTRL-T D.

* Added new command "D" to pulse the DTR line.  I.E.  Toggle its
  state twice with a configurable duration between toggles.

* Added new config/command line option "--dtr-pulse-duration"
  to set the duration between the DTR state toggles.  The default
  is 100ms.
2022-07-07 12:45:29 -06:00
Martin Lund
a717631207 Improve description of socket option 2022-07-07 14:00:56 +02:00
Martin Lund
e53b69afbd Update doc 2022-07-06 16:25:15 +02:00
Martin Lund
dc1b3a3549 Cleanup 2022-07-06 13:40:56 +02:00
Martin Lund
72fd2f2980 Fix timestamp configuration state 2022-07-06 13:22:19 +02:00
Martin Lund
f83e81e5db Fix default timestamp 2022-07-05 18:57:03 +02:00
Martin Lund
6a1d4838da Update bash completion 2022-07-05 17:47:20 +02:00
Martin Lund
683aab1dc7 Do not expose timestamp-format 'none' option
Do not expose the 'none' timestamp-format option. It is and internal
state used when timestamp is disabled.
2022-07-05 17:34:49 +02:00
Martin Lund
d598fa76a7 Fix timestamp miliseconds bug 2022-07-05 17:00:32 +02:00
Martin Lund
a56db8744b Improve error message 2022-07-05 16:49:31 +02:00
Martin Lund
62d9b5fb5c Remove timestamp format warning 2022-07-05 16:37:10 +02:00
Martin Lund
732c0c3f89 Add '24hour-delta' timestamp option
When enabled this option will timestamp new lines with the time elapsed
since the line before.

This is a very useful feature to identify which events takes the most
time.
2022-07-05 16:05:38 +02:00
Martin Lund
eb24e7215b
Merge pull request #152 from sly74fr/feature/macos_socket_build
Add missing 'string.h' include.
2022-07-04 17:56:21 +02:00
Sylvain LAFRASSE
16d6807de7 Add missing 'string.h' include. 2022-07-04 17:34:38 +02:00
V2
c10c47343e
Update configfile.c 2022-07-04 16:31:32 +01:00
Martin Lund
a3f5f6414b Cleanup 2022-07-04 12:00:24 +02:00
Martin Lund
b72fae4c87 Cleanup 2022-07-03 18:28:51 +02:00
Martin Lund
5bf7ae6382 Update doc 2022-07-03 14:58:04 +02:00
Martin Lund
2bc8cf4206 Update doc 2022-07-03 13:51:01 +02:00
Martin Lund
4ca7375cac Update doc 2022-07-03 13:18:52 +02:00
Martin Lund
db88a9d664 Rename --hex-mode to --hexadecimal 2022-07-03 00:47:18 +02:00
Martin Lund
1b91fd9f69 Rename --hex-mode to --hexadecimal 2022-07-01 13:16:14 +02:00
Martin Lund
3553fc765e Update text 2022-06-30 15:20:38 +02:00
Martin Lund
98c96dba52 Enable buffered writing
Read block of bytes from input and process same block for output.  This
will speed things up by reducing I/O overhead.
2022-06-24 17:21:17 +02:00
Martin Lund
d522527c49 Enable buffered reading
Read block of bytes from input and process byte by byte for output. This
will speed things up by reducing I/O overhead.
2022-06-24 17:18:08 +02:00
Martin Lund
4e08c68533 Refactoring 2022-06-24 00:17:45 +02:00
Martin Lund
941e8d5b04 Cleanup 2022-06-23 20:47:07 +02:00
Martin Lund
a947985651 Optimization 2022-06-22 21:27:11 +02:00
Martin Lund
ac25e7434c Cleanup 2022-06-22 11:23:57 +02:00
Martin Lund
a0f3f9d9b7 Cleanup stdout flushing
Flushing is not needed since we disabled buffering of stdout.
2022-06-22 01:03:59 +02:00
Martin Lund
4c611e6767 Cleanup log code 2022-06-22 00:22:18 +02:00
Martin Lund
c82b7e2ecc Cleanup 2022-06-21 22:32:24 +02:00
Martin Lund
3d65e62e52 Simplify stdout_configure() code 2022-06-21 19:28:04 +02:00
Martin Lund
f62e2f972b Simplify stdin_configure() code 2022-06-21 19:19:05 +02:00
Martin Lund
b46dcc46ac Update text 2022-06-17 14:25:50 +02:00