pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/comms/tio tio: update to 1.39.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bda5eac08e51
branches:  trunk
changeset: 380782:bda5eac08e51
user:      fcambus <fcambus%pkgsrc.org@localhost>
date:      Wed Jun 15 10:53:32 2022 +0000

description:
tio: update to 1.39.

Changes since tio v1.38:

* Improve key command response for local echo and timestamp

* Fix invalid hex character error message

* Make sure only matched config section is parsed

* Add support for "disable" keyword in config file

* Unify error message formating

* Cleanup list devices code

* 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.

* Update bash completion

* 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.

* 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.

* 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.

* Remove print of hex mode status at startup

* Remove newline option in hex mode

* Fix configfile memory leaks

* 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.

* Replace '1' with 'enable' in config files

* Convert errors to warnings

g0mb4:

* 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.

diffstat:

 comms/tio/Makefile |  4 ++--
 comms/tio/distinfo |  8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (25 lines):

diff -r 2d9dd2e7567b -r bda5eac08e51 comms/tio/Makefile
--- a/comms/tio/Makefile        Wed Jun 15 10:22:58 2022 +0000
+++ b/comms/tio/Makefile        Wed Jun 15 10:53:32 2022 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.9 2022/06/03 08:49:10 fcambus Exp $
+# $NetBSD: Makefile,v 1.10 2022/06/15 10:53:32 fcambus Exp $
 
-DISTNAME=      tio-1.38
+DISTNAME=      tio-1.39
 CATEGORIES=    comms
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=tio/}
 GITHUB_RELEASE=        v${PKGVERSION_NOREV}
diff -r 2d9dd2e7567b -r bda5eac08e51 comms/tio/distinfo
--- a/comms/tio/distinfo        Wed Jun 15 10:22:58 2022 +0000
+++ b/comms/tio/distinfo        Wed Jun 15 10:53:32 2022 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.9 2022/06/03 08:49:10 fcambus Exp $
+$NetBSD: distinfo,v 1.10 2022/06/15 10:53:32 fcambus Exp $
 
-BLAKE2s (tio-1.38.tar.xz) = 211cb1098dc5db582acd6c0133e50ed1f25a778d4e8dad9df2221e6e5ddd5c0d
-SHA512 (tio-1.38.tar.xz) = d702c907460abd3c15d051f185592d5ec9245734016e299960a4a102724e28208bb21b71cb3cba7919cd2197f338470297034401c7978bcd207195b548e8a2b9
-Size (tio-1.38.tar.xz) = 1806556 bytes
+BLAKE2s (tio-1.39.tar.xz) = 062fe2af8c8547f384462a5b100f30f05405cfa8689428ebea7b21073c9c2951
+SHA512 (tio-1.39.tar.xz) = 9ce962de85759b469356a4c89ab13e0cb436322d28437254c60ba2428a73aa952021757441e1d77cf7b25af0071722c718470b7de62b2ef6723b54e4d8bedd22
+Size (tio-1.39.tar.xz) = 1809280 bytes



Home | Main Index | Thread Index | Old Index