6 Changes since tio v1.28:
8 * Add mapping flags INLCRNL and ODELBS
10 The following new mapping flags are added:
12 INLCRNL: Map NL to CR-NL on input.
13 ODELBS: Map DEL to BS on output.
15 Flags requested and tested by Jan Ciger (janoc).
19 Changes since tio v1.27:
25 * Add snap status to README.md
27 * Add README.md to prettify GitHub page
33 * Add missing header file under musl-libc
35 Musl's inclusion tree slightly differs from glibc, therefore TCGETS2 is
36 not reachable through sys/ioctl.h, so asm/ioctls.h needs to be included
41 * Fix grammar and typos
45 Changes since tio v1.26:
49 * Add support for setting non-standard baudrates
51 Support for non-standard baudrate settings will be automatically enabled
52 if the termios2 interface is detected available. However, to play it
53 safe, the old and widely supported termios interface will still be used
54 when setting standard baudrates.
62 Changes since tio v1.25:
66 Make stdin behave more raw'ish. In particular, don't
67 translate CR -> NL on input.
69 * Add special character map feature
71 Add a --map option which allows mapping special characters, in particular CR and
72 NL characters which are used in various combinations on various platforms.
86 Changes since tio v1.24:
88 * Fix error applying new stdout settings
90 On Fedora 26 tio will quit with the following error message:
92 "Error: Could not apply new stdout settings (Invalid argument)"
94 In case of Fedora, it turns out that the new stdout settings used are a
95 bit too aggressive because an empty termios structure is used. To remedy
96 this we reuse the existing stdout settings and only reconfigure the
97 specific options we need to make a "raw" stdout configuration.
99 * Remove unused pkgconfig in configure
103 Remove unused variable.
107 Changes since tio v1.23:
109 * Optimize clear screen command
111 Replaced system call with inline ANSI/VT100 clear screen code sequence
113 * Fix bash completion installation
115 Fixed the configure script to avoid that the bash completion script gets
116 installed outside of the prefix location. The default install location
117 is now $prefix/share/bash-completion/completions.
119 Use the configure option '--with-bash-completion-dir=PATH' if you need
120 to install the bash completion script elsewhere.
124 * Add missing commas in conditional sentences
128 Changes since tio v1.22:
130 * Update copyright headers
138 Changes since tio v1.21:
140 * Update man page date
142 * Update copyright year
146 * Update README and man page
150 Changes since tio v1.20:
152 * Add support for hexadecimal mode
154 A new key command 'ctrl-t h' is introduced which toggles between
155 hexadecimal mode and normal mode. When in hexadecimal mode data received
156 will be printed in hexadecimal.
158 * Do not distribute src/bash_completion/tio
160 Since the bash completion tio script is now autogenerated from tio.in it
161 should not be distributed in the tarball.
163 * Add missing forward flag
165 * Update AUTHORS file
169 * 'ctrl-t b' to send serial break.
173 * Removed git commit references from ChangeLog
175 ChangeLog is primary useful for users who don't have the git repository
178 Replace git commit references with version numbers; or if the change
179 only cleans up another change with no release in between, remove the
180 changelog item completely.
184 Changes since tio v1.19:
186 * Added more error handling of terminal calls
188 Also removed duplicate terminal flushing calls.
190 * Revert "Added support for non-standard baud rates"
192 This reverts a change made in v1.18.
194 Reverting because supporting non-standard or arbitrary baud rates is
195 troublesome because the c library provides no means of doing so and even
196 if bare metal linux kernel interface is used it will not work on all
197 Linux kernels version.
201 Changes since tio v1.18:
203 * Rearranged key commands
205 Rearranged the key commands:
207 ctrl-t c (clear screen) is now
208 ctrl-t l which is similar to the well known shell ctrl-l
210 ctrl-t i (show settings information) is now
211 ctrl-t c (show configuration)
213 Updated man page accordingly.
215 * Added "ctrl-t c" key command to clear screen
219 Changes since tio v1.17:
223 * Added support for non-standard baud rates
225 Only enabled when possible, that is, when the BOTHER definition is
228 It is untested but it should work as described here:
229 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=683826
231 Some Cypress USB<->serial devices supposedly supports arbitrary speeds.
233 * Generate baudrate switch cases based on detection
235 Support a single source of baud rate configuration as discussed in
236 https://github.com/tio/tio/issues/45 .
238 To do so, autogeneration of the switch cases which do the baud rate
239 option value check and configuration/conversion in tty_configure() is
240 introduced via a single macro.
242 Just to be safe, this change also enables configure detection of all
243 baud rates, including the ones previously assumed supported by most/all
248 * Exit when not a tty device in autoconnect mode
252 * Added non-standard baud rates that are defined on FreeBSD
254 * Capitalized "GitHub" in README
258 Changes since tio v1.16:
260 * Compacted tty_configure() a bit
262 * Fixed automatic baud rate enablement
266 * Added autodetection of available baud rates
268 Various platforms support different baud rates.
270 To avoid adding platform specific handling generic baud rate detection
271 tests are introduced in the configure script. Successfully detected baud
272 rates are automatically enabled. This applies to both the C code and the
273 bash completion script.
276 Baud rates below 57600 are defined by POSIX-1 and supported by most
277 platforms so only baud rate 57600 and above are tested.
279 * Updated bash-completion
281 * Fixed printf() format type
283 * Added Travis build configuration
287 * Generated bash completion at configure time
289 * Reduce code duplication in baud rate detection
291 * Add support for baud rates 200 and 1800
293 * Fixed baudrate type
297 Changes since tio v1.15:
303 * Removed obsolete packaging files
305 * Removed use of deprecated bzero()
309 Changes since tio v1.14:
311 * Removed + to remove potential confusion
313 * Added input digit checks
315 * Fixed license string
317 * Introduced tty_configure()
319 Moved tty configuration actions to tty_configure() in tty.c. This way
320 options.c is strictly about parsing options nothing else.
322 * Function names cleanup
324 * Updated AUTHORS file
326 Added Nick who created the new tio package for Arch Linux.
328 * Fixed tx/rx counters type
332 * Include config.h before standard headers
334 Large file support was meant to be enabled in v1.11.
335 This change enables it for real.
339 Changes since tio v1.13:
341 * Fixed tio_printf macro
345 Fixed launch hints not being printed in no autoconnect mode.
347 * Added 'ctrl-t ?' to list available commands
349 * Fixed log mechanism
351 To avoid echoing only log what is received from tty device.
353 * Improved tio output
355 Added titles and indentation to commands output for clearer separation
356 when firing commands repeatedly.
358 Also added print of tio version and quit command hint at launch.
360 * Cleaned up tio print mechanism
366 "allow" is a transitive verb, which requires an object,
367 so "allow to <verb>" is ungrammatical.
373 Changes since tio v1.12:
375 * Fixed some error prints
377 * Fixed error printing for no autoconnect mode
379 Always print errors but only print silent errors when in no autoconnect
382 * Added key command for showing session settings
384 A new key command "ctrl-t i" is added to allow the user to display the
385 various session settings information (baudrate, databits, log file, etc.).
387 This is useful in case you have a running session but have forgotten
388 what the settings are.
392 Changes since tio v1.11:
394 * Consolidated command key handling
396 * Moved delay mechanism into separate function
398 * Retired obsolete usleep()
400 Replaced with nanosleep()
402 * Added simple tx/rx statistics command (ctrl-t s)
404 To display the total number of bytes transmitted/received simply perform the
405 'ctrl-t s' command sequence.
407 This feature can be useful when eg. trying to detect non-printable
410 * Further simplification of key handling
412 Changed so that the "ctrl-t ctrl-t" sequence is now simply "ctrl-t t" to
413 send the ctrl-t key code. This is inspired by screen which does similar
414 to send its command key code (ctrl-a a).
416 This change also eases adding new key commands if needed.
418 Updated man page accordingly.
420 * Cleaned up and simplified key handling
424 * Insert output delay only if something was output
428 Changes since tio v1.10:
430 * Enabled large file support (LFS)
432 Added autotools AC_SYS_LARGEFILE to support 64 bit file size handling.
438 Changes since tio v1.9:
440 * Introduced lock on device file
442 Tio will now test for and obtain an advisory lock on the tty device file
443 to prevent starting multiple sessions on the same tty device.
449 * Treat EOF on stdin as error
453 Changes since tio v1.8:
455 * Cleanup of error handling
457 Introduced consistent way of handling errors and printing error messages.
459 Also upgraded some warnings to errors.
461 * Updated localtime() error message
467 * Fix error handling for select()
469 Previously the error handling code for select() was unreachable.
471 * Removed unneeded quotes from AM_CFLAGS
475 * Fixed setting "tainted"
477 Set "tainted" if and only if any character was read from the device.
479 Ctrl-t is no longer sent to the device on exit, so the trick to avoid
480 its echo is not necessary.
482 Characters read from stdin don't directly affect output, so they
483 shouldn't enable "tainted".
485 * Used \r in color_printf()
487 \033[300D is an unusual way to move the cursor back to column 1.
488 Use straightforward \r instead.
490 * Added missing \r\n to warning messages
492 \n alone is not enough, because the terminal is in raw mode.
496 Changes since tio v1.7:
498 * Fixed enablement of compiler warnings
500 * Fixed log_open() prototype
502 * Fixed index error wrt ctrl-t detection
504 * Fixed handling of ctrl-t
506 Before, when exercising the quit key sequence (ctrl-t + q) the ctrl-t code
507 (0x14) would be sent.
509 This is now fixed so that it is not sent.
511 However, in case it is needed to send ctrl-t to the device it is possible by
512 simply repeating the ctrl-t.
514 Meaning, ctrl-t + ctrl-t = ctrl-t sent to device.
516 * Improved error handling
518 Fixes a memory leak and avoids aggressive busy looping when problems
519 accessing tty device.
521 * Removed redundant log_close() call
523 * Enabled compiler warnings
527 * Stopped copying arguments to fixed-size buffers
529 Don't needlessly copy command-line arguments into fixed-size buffers.
531 Previously the program crashed if an overlong pathname was provided on
532 the command line. Also, some systems (such as GNU Hurd) don't define
535 * Added const to log_open() prototype
537 * Completed the ^g to ^t transition
539 In v1.7 the escape key was changed from ^g to ^t, but some
540 code and comments still referred to the old key.
542 * Used HTTPS for tio.github.io
544 * Man page beautification
546 * Bumped date in man page
548 * Improve man page formatting
550 Use regular font for metacharacters such as "[]", "," or "|";
551 use italic font for metavariables.
553 * Fixed hyphen vs minus vs em-dash confusion in man page
556 \- prints as minus sign;
557 \em prints as em-dash.
561 Changes since tio v1.6:
563 * Changed escape key from ^g to ^t
565 After renaming to "tio" it makes sense to change the escape key
566 accordingly. Hence, the new escape key is ^t.
568 Meaning, in session, its now ctrl-t + q to quit.
572 * Fixed silly "tio or tio" in man page