head 1.12; access; symbols pkgsrc-2023Q4:1.12.0.4 pkgsrc-2023Q4-base:1.12 pkgsrc-2023Q3:1.12.0.2 pkgsrc-2023Q3-base:1.12 pkgsrc-2023Q2:1.11.0.10 pkgsrc-2023Q2-base:1.11 pkgsrc-2023Q1:1.11.0.8 pkgsrc-2023Q1-base:1.11 pkgsrc-2022Q4:1.11.0.6 pkgsrc-2022Q4-base:1.11 pkgsrc-2022Q3:1.11.0.4 pkgsrc-2022Q3-base:1.11 pkgsrc-2022Q2:1.11.0.2 pkgsrc-2022Q2-base:1.11 pkgsrc-2022Q1:1.6.0.2 pkgsrc-2022Q1-base:1.6 pkgsrc-2021Q4:1.3.0.2 pkgsrc-2021Q4-base:1.3 pkgsrc-2021Q3:1.1.0.6 pkgsrc-2021Q3-base:1.1 pkgsrc-2021Q2:1.1.0.4 pkgsrc-2021Q2-base:1.1 pkgsrc-2021Q1:1.1.0.2 pkgsrc-2021Q1-base:1.1; locks; strict; comment @# @; 1.12 date 2023.09.16.09.54.03; author bsiegert; state Exp; branches; next 1.11; commitid tfUFAVAqXsouKYEE; 1.11 date 2022.06.18.14.52.15; author fcambus; state Exp; branches; next 1.10; commitid HXYaee9bjto62xID; 1.10 date 2022.06.15.10.53.32; author fcambus; state Exp; branches; next 1.9; commitid AUNF20904CT8O7ID; 1.9 date 2022.06.03.08.49.10; author fcambus; state Exp; branches; next 1.8; commitid f5hCzQE9juKqvzGD; 1.8 date 2022.04.15.07.57.15; author fcambus; state Exp; branches; next 1.7; commitid jbD8yPSCJwTeNgAD; 1.7 date 2022.03.29.13.58.00; author fcambus; state Exp; branches; next 1.6; commitid TSVVjJNRektUk7yD; 1.6 date 2022.02.20.08.34.39; author fcambus; state Exp; branches; next 1.5; commitid r3Ah0NF3kvYIJktD; 1.5 date 2022.02.16.20.42.02; author fcambus; state Exp; branches; next 1.4; commitid hDk5Bg9fWNsdTSsD; 1.4 date 2022.02.13.21.27.39; author fcambus; state Exp; branches; next 1.3; commitid w3I1WGYs4oWNevsD; 1.3 date 2021.10.26.10.06.06; author nia; state Exp; branches; next 1.2; commitid WegiMfWFM6Bc0jeD; 1.2 date 2021.10.07.13.27.10; author nia; state Exp; branches; next 1.1; commitid 1PmKzhd9IfD5JSbD; 1.1 date 2021.02.17.14.08.51; author fcambus; state Exp; branches; next ; commitid JZ2CstQT9TSNp4IC; desc @@ 1.12 log @tio: update to 2.6 There are too many changes since the last pkgsrc version, see the release notes at https://github.com/tio/tio/releases. Via PR pkg/57589. @ text @$NetBSD: distinfo,v 1.11 2022/06/18 14:52:15 fcambus Exp $ BLAKE2s (tio-2.6.tar.xz) = ceb916af9b3ee45759961eae70398f08a5943b2d65198465c5f1de81588a8827 SHA512 (tio-2.6.tar.xz) = 6ff7a0492ea2bffd6f4cfb2745e0a3be2825e2a5c78fb0a35887cbe461472ffe0707c91a7eabd8744f7b52a8ee059b2e9a51e81fa426be2ffab6cf546e5ddd23 Size (tio-2.6.tar.xz) = 3429792 bytes @ 1.11 log @tio: update to 1.40. Changes since tio v1.39: * Add config support for log-strip * Add config support for hex-mode * Rename --hex to --hex-mode * Fix completion for -e, --local-echo * Ignore newlines in hex output * Fix newline in warning_printf() * Fix ansi_printf_raw() in no color mode * Enter non-interactive mode when piping to tio Add support for a non interactive mode which allows other application to pipe data to tio which then forwards the data to the connected serial device. Non ineractive means that tio does not react to interactive key commands in the incoming stream. This allows users to pipe binary data directly to the connected serial device. Example use: $ cat commands.txt | tio /dev/ttyUSB0 * Also strip backspace from log To make log strip feature consistent so that we remove all unprintable control characters and escape sequences. * Socket code cleanup * Cleanup man page * Rename --log-filename to --log-file Yin Fengwei: * Allow strip escape sequence characters from log file @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.10 2022/06/15 10:53:32 fcambus Exp $ d3 3 a5 3 BLAKE2s (tio-1.40.tar.xz) = f8348db14f7a5c1b5d1b09cf7a2773be78e2b7686e5924742560b402ff62b4d8 SHA512 (tio-1.40.tar.xz) = 41f92d757fea3099e9974c64736aa75f69961ba5baf7b01cdb281656bcbf6490afe3748ce49c080624b5f4d3493a8398b8d702be0423f2bcbd0f0484bf76fdf6 Size (tio-1.40.tar.xz) = 3069480 bytes @ 1.10 log @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:" and "inet6:" 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. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.9 2022/06/03 08:49:10 fcambus Exp $ d3 3 a5 3 BLAKE2s (tio-1.39.tar.xz) = 062fe2af8c8547f384462a5b100f30f05405cfa8689428ebea7b21073c9c2951 SHA512 (tio-1.39.tar.xz) = 9ce962de85759b469356a4c89ab13e0cb436322d28437254c60ba2428a73aa952021757441e1d77cf7b25af0071722c718470b7de62b2ef6723b54e4d8bedd22 Size (tio-1.39.tar.xz) = 1809280 bytes @ 1.9 log @tio: update to 1.38. === tio v1.38 === Changes since tio v1.37: * Redirect error messages to stderr * Improve help and man page * Mention config file in --help * Fix running without config file * Fix config file error messages * Redirect error messages to stderr * Add repology packaging status * Fix parsing of default settings Default configuration file settings were not parsed in case a section was matched. Now we make sure that the default (unnamed) settings are always parsed. * Append to existing log file (no truncation) * Add socket info to show configuration * Print socket info at startup * Fix socket option parsing Peter Collingbourne: * Match user input against config section names if pattern matching was unsuccessful. This allows for better config file ergonomics if the user has a diverse set of serial devices as the name does not need to be specified in the config file twice. * Add support for external control via a Unix domain socket. This feature allows an external program to inject output into and listen to input from a serial port via a Unix domain socket (path specified via the -S/--socket command line flag, or the socket config file option) while tio is running. This is useful for ad-hoc scripting of serial port interactions while still permitting manual control. Since many serial devices (at least on Linux) get confused when opened by multiple processes, and most commands do not know how to correctly open a serial device, this allows a more convenient usage model than directly writing to the device node from an external program. Any input from clients connected to the socket is sent on the serial port as if entered at the terminal where tio is running (except that ctrl-t sequences are not recognized), and any input from the serial port is multiplexed to the terminal and all connected clients. Sockets remain open while the serial port is disconnected, and writes will block. Example usage 1 (issue a command): echo command | nc -UN /path/to/socket > /dev/null Example usage 2 (use the expect command to script an interaction): #!/usr/bin/expect -f set timeout -1 log_user 0 spawn nc -UN /path/to/socket set uart $spawn_id send -i $uart "command1\n" expect -i $uart "prompt> " send -i $uart "command2\n" expect -i $uart "prompt> " lexaone: * fix for using option 'log' without 'log-filename' in config file @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.8 2022/04/15 07:57:15 fcambus Exp $ d3 3 a5 3 BLAKE2s (tio-1.38.tar.xz) = 211cb1098dc5db582acd6c0133e50ed1f25a778d4e8dad9df2221e6e5ddd5c0d SHA512 (tio-1.38.tar.xz) = d702c907460abd3c15d051f185592d5ec9245734016e299960a4a102724e28208bb21b71cb3cba7919cd2197f338470297034401c7978bcd207195b548e8a2b9 Size (tio-1.38.tar.xz) = 1806556 bytes @ 1.8 log @tio: update to 1.37. === tio v1.37 === Changes since tio v1.36: * Make libinih a fallback dependency This means that in case meson does not find libinih it will automatically clone libinih and include it in the build. The libinih library is reconfigured to be statically built so that no shared object will be installed. Sylvain LAFRASSE: * Fix timestamp parsing in INI conf * Factorize timestamp parsing to be coherent with command line format in configuration file. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.7 2022/03/29 13:58:00 fcambus Exp $ d3 3 a5 3 BLAKE2s (tio-1.37.tar.xz) = 46014a1655fb87fb552465f34aecf8bac9225ef39ce6021179baa8d167ff14cd SHA512 (tio-1.37.tar.xz) = 207184d297809c7f88185353b55519cf119eed26b5710b644418ef0603d003618c69e593a0f531822c0455a512397cea1b4747a453af5bbb369dad14025b0847 Size (tio-1.37.tar.xz) = 1804236 bytes @ 1.7 log @tio: update to 1.36. === tio v1.36 === Changes since tio v1.35: * Add support for defaults in config file If no section name is specified the configuration will be considered the default one. This allows to set e.g. a default color code for sections which do not configure a color code. * Handle SIGHUP Handle SIGHUP so that the registered exit handlers are called to restore the terminal back to its orignal state. * Add color configuration support * Bypass unused result warnings * Force dependency on libinih Configuration file support is considered a mandatory feature. * Update headers * Update AUTHORS * Update man page * Move string_to_long() to misc.c * Update CircleCI config * Update tio gif * Update README * Update LICENSE date * Remove redundant COPYING file Liam Beguin: * Document configuration file options * Add support for a configuration file * misc: add _unused macro Some parameters are expected to be unused. Add a basic macro to mute these compiler warnings. * options: expose string_to_long() Expose string_to_long() so that other source files can use it. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.6 2022/02/20 08:34:39 fcambus Exp $ d3 3 a5 3 BLAKE2s (tio-1.36.tar.xz) = 5efc8f9206b806061d4ced00f05367d1c65a8f08366c78fc878b9a828fc84807 SHA512 (tio-1.36.tar.xz) = fda643b5ed8f24acfc2b9135cf508acbca1157806de884c152882526688a05e823c7de29196cb94e6bedb025bfda8750d736e07e5b829df784cb7f9042ec214a Size (tio-1.36.tar.xz) = 1803668 bytes @ 1.6 log @tio: update to 1.35. Changes since tio v1.34: * Add support for automatically generated log filename Automatically generate log filename if none is provided. The auto generated file name is on the form: "tio_DEVICE_YYYY-MM-DDTHH:MM:SS.log" * Add support for configurable timestamp format Also changes default timestamp format from ISO8601 to classic 24-hour format as this is assumed to be the format that most users would prefer. And reintroduces strict but optional ISO8601 format. This feature allows to easily add more timestamp formats in the future. * Reintroduce asm-generic/ioctls.h It is needed for ppc builds. * Add macro hack to workaround older buggy glibc Robey Pointer: * Add support for high bps on OS X @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.5 2022/02/16 20:42:02 fcambus Exp $ d3 3 a5 3 BLAKE2s (tio-1.35.tar.xz) = 4f943a2f61fe41b4ff5875ef657b387904c252c9afc9a5d7391f33628e2d2db6 SHA512 (tio-1.35.tar.xz) = e2ca85e189d218be4f61b0e1602e8bca5deaf93affcd2c25e1155bd25e1b31ee2d3b1ff7327225a74f3ad04d56bc5ccc18758c92947c9fb2059ebe8224659961 Size (tio-1.35.tar.xz) = 1413192 bytes @ 1.5 log @tio: update to 1.34. Changes since tio v1.33: * Fix setspeed2 compilation * Only apply color formatting when using color option To help the color blind who may use custom terminal foreground / background colors. * Update README * Add '-c, --color' option Allow user to select which ANSI color code to use to colorize the tio text. To successfully set the color the color code must be in the range 0..255. If color code is negative tio will print all available ANSI colors. The default color is changed to bold white to make tio defaults usable for most users, including color blind users. * Fix setspeed2 check * Fix meson header check string * Reintroduce long timestamp format But make the timestamp format RFC3339 compliant instead. The RFC states: NOTE: ISO 8601 defines date and time separated by "T". Applications using this syntax may choose, for the sake of readability, to specify a full-date and full-time separated by (say) a space character. This way we keep the information specified by ISO 8601 but make it more human readable which is better for the console output. * Update version year Sylvain LAFRASSE: * Fix TTY device listing on Darwin. (#136) * Fix TCGETS2 search on Darwin. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.4 2022/02/13 21:27:39 fcambus Exp $ d3 3 a5 4 BLAKE2s (tio-1.34.tar.xz) = 5c9062cbf43b7859f833f286d6999132da2e4dea2592125385c8ad157a5ebc4d SHA512 (tio-1.34.tar.xz) = 8d23d08b113d9e6d9e9280e109ba778879b949776d5090e27c0b4656d67f7cd48a8660e08a7c85e1cff6273dbf0191fa457425dd143453bbceb428d22cca2802 Size (tio-1.34.tar.xz) = 1412172 bytes SHA1 (patch-meson.build) = 5a2dc0471874a80ba02dc729671cb091e6ac1657 @ 1.4 log @tio: update to 1.33. Changes since tio v1.32: * Show auto connect status in show configuration * Use '#pragma once' in all headers * Improve printed output Get rid of inconsistencies in the printed output (error printing, colors, etc.). Prepare for user configurable color. * Rename option -i to -L * Shorten timestamp * Shorten timestamp description We do not need the date part of the timestamp. It simply takes up too much precious line space. In case of logging to file, one can easily conclude the date from the file date information. * Replace Travis with circleCI * Replace autotools with meson To introduce much simpler build configuration which is also easier to maintain. * Add list serial devices feature For convenience, add a --list-devices option which lists the available serial devices. * Cleanup: Use dot notation for default options struct * Update AUTHORS * Add command to show version The key sequence ctrl-t v will now show the version of tio. * Align format of timestamps * Add Sylvain as official co-maintainer Sylvain LAFRASSE: * Add '-t' option description for time stamping. * Add description for time stamping. * Resolved tio/tio#84: Added timestamps in log file if enabled. attila-v: * Refine timestamps with milliseconds and ISO-8601 format (#129). * Show milliseconds too in the timestamp (#114) and log file (#124) * Change timestamp format to ISO-8601. Yin Fengwei: * Output newline on stdout with hex print mode This is to fix the issue #104. The timestamp will always be printed at the beginning of line: [10:25:56] Switched to hexadecimal mode 0d 0a 0d [10:25:57] 41 43 52 4e 3a 5c 3e 0d 0a 0d [10:25:58] 41 is changed to: [12:34:56] 45 72 72 6f 72 3a 20 49 6e 76 61 6c 69 64 20 [12:34:56] 41 43 52 4e 3a 5c 3e [12:34:56] 41 43 52 4e 3a 5c 3e [12:34:57] 41 43 52 4e 3a 5c 3e 6c 73 Jakob Haufe: * Make comparison POSIX compliant String comparison with == is not POSIX compliant and can fail with e.g. dash. Henrik Brix Andersen: * Add bash completion of tty devices. * Add -t/--timestamp to bash completion script. Henner Zeller: * Local echo: show character by character even if stdout buffered. Björn Stenberg: * Show error when failing to open a tty Alban Bedel: * Fix out of tree builds Out of tree builds are currently broken because $(top_srcdir)src/include is not in the search path. In tree builds are working because autconf add $(top_builddir)/src/include to the search path for the generated config.h. As $(top_builddir) and $(top_srcdir) are identical during in tree builds the search path still end up beeing somehow correct. To fix this add -I$(srcdir)/include to the CPPFLAGS in Makefile.am. Fabrice Fontaine: * src/setspeed2.c: fix redefinition of termio Include ioctls.h and termbits.h from asm-generic instead of asm to avoid build failures. Erik Moqvist * Exit if output speed cannot be set. Lars Kellogg-Stedman: * fflush() after putchar() for print_hex and print_normal In order for local echo to work properly, we have to either call fflush(stdout) after every character or just disable line buffering. This change calls fflush() after putchar(). * Disable line buffering in stdout In order for local echo to work properly, we have to either call fflush(stdout) after every character or just disable line buffering. This change uses setbuf(stdout, NULL) to do the latter. George Stark: * dont show line state if ioctl failed * add serial lines manual control arichi: * Flush every local echo char Flush stdout at every char in case it happens to be buffered. Mariusz Midor: * Newline: handle booth NL and CR Flag ONLCRNL expects code \n after press Enter, but on some systems \r is send instead. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.3 2021/10/26 10:06:06 nia Exp $ d3 3 a5 3 BLAKE2s (tio-1.33.tar.xz) = 91c8b1cb183f202a8f8417a5b8b9e890bf49b35d3b412546705615c2f07980cd SHA512 (tio-1.33.tar.xz) = aa5eefe8b3d30910af82cc5303b073d914a48cb33088f45799d4f557819d51cfc6d3b04b660728f540f8b0e2b07ff81ec30ad7ae51945c5476bbc936376770d1 Size (tio-1.33.tar.xz) = 1411380 bytes @ 1.3 log @comms: Replace RMD160 checksums with BLAKE2s checksums All checksums have been double-checked against existing RMD160 and SHA512 hashes @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.2 2021/10/07 13:27:10 nia Exp $ d3 4 a6 3 BLAKE2s (tio-1.32.tar.xz) = 0759f74a40dab68d5f5a89b6582bcba2c7ed8c626e01c86a1933e24292a2285c SHA512 (tio-1.32.tar.xz) = 6ec216ea8e60fe8fb09e3bc378d8178f0d27789ba876e5a763c1eeef7de064831143270e644e64658d3b9acaf3c1b406f1e3331acc4c8bee91fd56851b99941f Size (tio-1.32.tar.xz) = 88976 bytes @ 1.2 log @comms: Remove SHA1 hashes for distfiles @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.1 2021/02/17 14:08:51 fcambus Exp $ d3 1 a3 1 RMD160 (tio-1.32.tar.xz) = 0c8391e2ecc8b31ae359c92c1e39555c45f9ced4 @ 1.1 log @comms/tio: import tio-1.32. "tio" is a simple TTY terminal application which features a straightforward commandline interface to easily connect to TTY devices for basic input/output. @ text @d1 1 a1 1 $NetBSD$ a2 1 SHA1 (tio-1.32.tar.xz) = a46922e46fcbd78941b08f039700d40fb15bebd4 @