Commit graph

791 commits

Author SHA1 Message Date
Martin Lund
0a892006ea Unify error message formating 2022-06-11 23:36:51 +02:00
Martin Lund
bf749aead4 Cleanup list devices code 2022-06-11 23:14:18 +02:00
Martin Lund
a0d4be068b Fix command-line tty-device|config parsing
Allow user to add options on both sides of the provided config argument.

For example:

 $ tio -b 9600 am64-evm -e

Before, tio only allowed adding arguments after the config argument.

Implemented as simple as possible by introducing two stage option parsing.
2022-06-11 22:56:03 +02:00
Martin Lund
bd5f542959 Update bash completion 2022-06-11 17:11:19 +02:00
Martin Lund
c38ba262d3 Cleanup IPv6 code 2022-06-11 15:16:47 +02:00
Martin Lund
81a3dbd68a Update README 2022-06-11 14:55:16 +02:00
Martin Lund
1117dc603e Update TODO 2022-06-11 14:22:22 +02:00
Martin Lund
17e96d70bc Add support for IPv4 and IPv6 network sockets
Add support for IPv4 and IPv6 network sockets via socket syntax
"inet:<port>" and "inet6:<port>" respectively.

For example, to listen and redirect serial device I/O to a host bound
IPv4 socket simply do:

 $ tio /dev/ttyUSB0 --socket inet:4444

To connect do e.g.:

 $ nc 127.0.0.1 4444

Likewise, for IPv6 do:

 $ tio /dev/ttyUSB0 --socket inet6:4444

To connect do e.g.:

 $ nc ::1 4444

If port is 0 or no port is provided default port 3333 is used.
2022-06-11 14:19:29 +02:00
Martin Lund
ba22191800 Fix tio deleting unix socket file
If tio has a unix file socket open, a second tio instance of tio may
delete the socket file. This change fixes so that it will not be deleted
and tio will instead error and complain about conflicting socket file.
2022-06-11 02:56:44 +02:00
Martin Lund
373dca3d5b Update README 2022-06-08 20:33:13 +02:00
Martin Lund
50478e7df3 Update TODO 2022-06-08 16:21:50 +02:00
Martin Lund
46b5783789 Rework color option
Rework the color option to support setting ANSI color code values
ranging from 0..255 or "none" for no color or "list" to print a list of
available ANSI colors codes.

Also, disables color when piping.
2022-06-08 16:19:47 +02:00
Martin Lund
2519e2081a Update README 2022-06-07 18:43:54 +02:00
Martin Lund
625f32d288 Update README 2022-06-07 18:36:19 +02:00
Martin Lund
1f094b6b68 Update TODO 2022-06-07 18:23:34 +02:00
Martin Lund
e7282731f3
Create FUNDING.yml 2022-06-07 18:20:28 +02:00
Martin Lund
e854ca0efa Update TODO 2022-06-07 18:14:04 +02:00
Martin Lund
77ff1e5269 Remove debug 2022-06-07 10:01:26 +02:00
Martin Lund
14a16908a1 Update README 2022-06-07 07:40:24 +02:00
Martin Lund
0a22142957 Update README 2022-06-07 07:27:11 +02:00
Martin Lund
10199f6053 Update AUTHORS 2022-06-06 21:22:58 +02:00
Martin Lund
54830e3528 Update README 2022-06-06 21:19:09 +02:00
Martin Lund
2109a0063b Update README 2022-06-06 20:32:47 +02:00
Martin Lund
387f47a39c Update README 2022-06-06 20:29:17 +02:00
Martin Lund
989efeae88 Remove print of hex mode status at startup 2022-06-06 20:08:05 +02:00
Martin Lund
d41649afb6 Update bash completion 2022-06-06 19:47:08 +02:00
Martin Lund
6d007d39d7 Remove newline option in hex mode 2022-06-06 19:38:31 +02:00
g0mb4
0b55981e52 Extended hexadecimal mode.
While in hex mode (ctrl-t h) you can output hexadecimal values.
E.g.: to send 0x0A you have to type 0A (always 2 characters).

Added option -x, --hex to start in hexadecimal mode.

Added option --newline-in-hex to interpret newline characters in hex mode.
This is disabled by default, because, in my opinion, hex stream is
fundamentally different from text, so a "new line" is meaningless in this
context.
2022-06-06 19:10:00 +02:00
Martin Lund
7d3b687eb4 Update README 2022-06-06 10:19:37 +02:00
Martin Lund
a5bde2ea51 Update README 2022-06-06 01:40:49 +02:00
Martin Lund
732a768970 Update TODO 2022-06-05 09:29:33 +02:00
Martin Lund
d907834f72 Update README 2022-06-04 22:28:54 +02:00
Martin Lund
5b7191ed7c Fix configfile memory leaks 2022-06-04 20:37:06 +02:00
Martin Lund
8a83d2a973 Update bash completion 2022-06-04 19:24:26 +02:00
Martin Lund
9476422922 Remove command-line option inconsistencies
Optional arguments, as parsed by the getopt_long mechanism, are
inherently inconsistent with how you define required arguments.

To avoid confusion we decide to avoid this inconsistency by replacing
optional options with additional options with required argmuments.
2022-06-04 19:08:05 +02:00
Martin Lund
8d2ad8d82d Update man page 2022-06-04 17:45:19 +02:00
Martin Lund
d43ef3333f Replace '1' with 'enable' in config files 2022-06-04 17:33:36 +02:00
Martin Lund
6b91159fdf Update README 2022-06-04 17:08:16 +02:00
Martin Lund
be2c682da6 Convert errors to warnings 2022-06-02 20:51:23 +02:00
Martin Lund
b0590fb021 Bump version 2022-06-02 10:54:08 +02:00
Martin Lund
ba201c7248 Update version date 2022-06-02 09:36:36 +02:00
Martin Lund
4e89858816 Update ChangeLog 2022-06-02 01:06:37 +02:00
Martin Lund
b0c085debd Revert back to showing help when no arguments 2022-06-02 01:04:24 +02:00
Martin Lund
89574b2469 Mention config file in --help 2022-06-02 00:29:25 +02:00
Martin Lund
fb1fc9b7a1 Update README 2022-06-01 23:46:42 +02:00
Martin Lund
6e0fcd1280 Update ChangeLog 2022-06-01 23:43:21 +02:00
Martin Lund
836c28098c Redirect error messages to stderr 2022-06-01 19:55:44 +02:00
Martin Lund
5b6a106b34 Improve help and man page 2022-06-01 19:26:42 +02:00
Martin Lund
c94e8826fd Fix running without config file 2022-06-01 18:37:11 +02:00
Martin Lund
c96c3c4c83 Fix config file error messages 2022-06-01 18:23:14 +02:00