Commit graph

891 commits

Author SHA1 Message Date
Martin Lund
b5273b2b23 Bump version 2022-07-23 20:05:51 +02:00
Martin Lund
0eb59b09cf Update README 2022-07-23 14:52:58 +02:00
Martin Lund
e8efb621f8 Bump version date 2022-07-23 12:21:48 +02:00
Martin Lund
a133a241d6 Update NEWS 2022-07-23 12:02:35 +02:00
Martin Lund
c3116b2b56 Enable log feature when using --log-filename
No reason to not assume that the user wants to enable log when the
--log-filename is used. This way uses can skip the use of --log to
enable log.
2022-07-23 10:40:35 +02:00
Martin Lund
a13fe254f2 Enable line buffering of log
Replace flushing/writing of log at every log write operation with line
buffering, meaning log will be written line by line to make it more I/O
friendly but still update frequently.
2022-07-23 09:53:12 +02:00
Martin Lund
d28007f0d3 Avoid invalid hex character messages when switching hex mode 2022-07-22 22:03:47 +02:00
Martin Lund
c24cbfcd34 Force flushing of log writes 2022-07-22 17:57:11 +02:00
Martin Lund
f454bdaa3a Cleanup 2022-07-22 16:40:15 +02:00
Martin Lund
b322ecbdcf Renamed tty_flush() to tty_sync() 2022-07-22 16:37:49 +02:00
Martin Lund
de606d51ba Fix sync output to serial port
Using fsync() on filedescriptors for serial ports can not be relied on.
Add use of tcdrain() to make sure data has been written by the serial
port before proceeding.

This fixes a problem with tio sometimes not writing piped input data to
the serial port before exiting which results in the pending writes being
cancelled / flushed.
2022-07-22 16:28:38 +02:00
Martin Lund
0cdd69940f Clean up tty_flush() 2022-07-22 00:45:30 +02:00
Martin Lund
443e07ef8a Update README 2022-07-22 00:29:10 +02:00
Martin Lund
dd8b137b15 Force frequent sync on tty_flush() 2022-07-22 00:16:54 +02:00
Martin Lund
2fb1963da2 Update README 2022-07-22 00:02:42 +02:00
Martin Lund
b082b0593b Update example tiorc 2022-07-21 09:01:13 +02:00
Martin Lund
b1102b59e0 Update AUTHORS 2022-07-21 08:56:54 +02:00
Martin Lund
616003a55f Bump version 2022-07-20 20:56:43 +02:00
Martin Lund
6462aac792 Simplify tty_flush() 2022-07-20 20:46:01 +02:00
Martin Lund
5f46136b28 Quit from non-interactive mode using ctrl-c
When piping to tio it will automatically enter "non-interactive" mode
which means it will not react to any input key sequences but simple read
the input stream and write it to the tty device.

This also means that ctrl-t q can not be used to quit and so tio would
hang forever when used in non-interactive mode.

This change allows to send the standard termination signal by pressing
ctrl-c on tio in non-interactive mode to make it quit.
2022-07-20 18:18:16 +02:00
Martin Lund
eadcc7e384 Make sure we flush output buffer to tty when piping to tio 2022-07-20 17:56:43 +02:00
Martin Lund
a0a8dccd51 Do not return false read error when piping to tio 2022-07-20 13:11:11 +02:00
Martin Lund
40c8753151 Show error message when reading port settings fail 2022-07-20 12:25:51 +02:00
Martin Lund
4031636bce Update README 2022-07-20 11:25:58 +02:00
Martin Lund
02637a92ca
Merge pull request #162 from rhapsodyv/patch-1
Add MacPorts install instructions
2022-07-20 11:19:51 +02:00
Victor Oliveira
3bb0ffdeff add macports install instructions
MacPorts support is added by https://github.com/macports/macports-ports/pull/15400
2022-07-19 16:42:53 -03:00
Martin Lund
c57f2c9fba Update README 2022-07-19 18:24:03 +02:00
Martin Lund
e96d289718 Cleanup 2022-07-19 14:54:02 +02:00
Martin Lund
cbff112ec3 Update NEWS 2022-07-19 14:52:21 +02:00
Martin Lund
a01d8b38b1 Update plain text man page 2022-07-19 13:02:29 +02:00
Martin Lund
62c00ce05e Update TODO 2022-07-19 12:57:12 +02:00
Martin Lund
3903880106 Rework toggle and pulse feature to support all lines
Replace existing toggle and pulse key commands with the following
generalized key commands which allows to toggle or pulse all serial port
lines:

 ctrl-t g   Toggle serial port line
 ctrl-t p   Pulse serial port line

When used, user will be asked which serial line to toggle or pulse.

Also introduce --line-pulse-duration option for setting specific pulse
duration in milliseconds for each serial line using a key value pair
format. Each key represents a serial line. The following keys are
available: DTR, RTS, CTS, DSR, DCD, RI.

Example:

 $ tio /dev/ttyUSB0 --line-pulse-duration DTR=200,RTS=300,RI=50

Likewise, the pulse duration can also be set via configuration file
using the line-pulse-duration variable:

 line-pulse-duration = DTR=200,RTS=300,RI=50
2022-07-19 12:54:40 +02:00
Martin Lund
35f249394c Update AUTHORS 2022-07-18 19:02:03 +02:00
Ralph Siemsen
34e95bb4a5 Fix relative timestamps
Fix the display of relative timestamps. The hack of subtracting 3600
only works if you happen to be in a time zone that is one hour away from
UTC. When subtracting two time values, the result is an absolute
quantity (interval). These should be displayed as-is; without local time
zone nor daylight saving correction. Hence gmtime() instead of
localtime().
2022-07-18 18:58:28 +02:00
Martin Lund
0bbaf4a296 Update plain text man page 2022-07-17 13:54:56 +02:00
Martin Lund
5fd3bf60ba Update man page 2022-07-17 13:14:59 +02:00
Martin Lund
f26abe91b8 Upgrade inih wrap to r56 2022-07-17 13:07:07 +02:00
Martin Lund
110aa1d9dd Update TODO 2022-07-17 09:34:33 +02:00
Martin Lund
fc3e6c40ec Optimization 2022-07-17 09:34:03 +02:00
Martin Lund
4c2d4ed67f Update README 2022-07-17 03:20:56 +02:00
Martin Lund
371a34d23a Add example configuration file 2022-07-16 12:31:53 +02:00
Martin Lund
8b77111bb1 Bump version 2022-07-15 19:56:11 +02:00
Martin Lund
c931d7690d Update plain text man page 2022-07-15 19:55:52 +02:00
Martin Lund
862a3ecadd Bump version date 2022-07-15 19:03:08 +02:00
Martin Lund
7b5529b31f Update NEWS 2022-07-15 19:02:36 +02:00
Martin Lund
019e93a0ed Update AUTHORS 2022-07-15 19:00:19 +02:00
Martin Lund
9733bdf19c Introduce bold color option
Introduce "bold" color option which only apply bold color formatting to
existing system color.

Also make "bold" the default color option.

Fixes all white issue with black on white tio text.
2022-07-15 18:42:03 +02:00
Martin Lund
9db7bb4fbb Update README 2022-07-15 13:45:14 +02:00
Martin Lund
52a1e65bc3 Update plain text man page 2022-07-15 12:41:44 +02:00
Martin Lund
b7ff637667 Update README 2022-07-15 12:30:28 +02:00