4 Changes since tio v1.19:
6 * Added more error handling of terminal calls
8 Also removed duplicate terminal flushing calls.
10 * Revert "Added support for non-standard baud rates"
12 This reverts commit deec83a4eeddd5c3b2d4df041aede2bceb8867da.
14 Reverting because supporting non-standard or arbitrary baud rates is
15 troublesome because the c library provides no means of doing so and even
16 if bare metal linux kernel interface is used it will not work on all
17 Linux kernels version.
21 Changes since tio v1.18:
23 * Rearranged key commands
25 Rearranged the key commands:
27 ctrl-t c (clear screen) is now
28 ctrl-t l which is similar to the well known shell ctrl-l
30 ctrl-t i (show settings information) is now
31 ctrl-t c (show configuration)
33 Updated man page accordingly.
35 * Added "ctrl-t c" key command to clear screen
39 Changes since tio v1.17:
43 * Added support for non-standard baud rates
45 Only enabled when possible, that is, when the BOTHER definition is
48 It is untested but it should work as described here:
49 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=683826
51 Some Cypress USB<->serial devices supposedly supports arbitrary speeds.
53 * Generate baudrate switch cases based on detection
55 Support a single source of baud rate configuration as discussed in
56 https://github.com/tio/tio/issues/45 .
58 To do so, autogeneration of the switch cases which do the baud rate
59 option value check and configuration/conversion in tty_configure() is
60 introduced via a single macro.
62 Just to be safe, this change also enables configure detection of all
63 baud rates, including the ones previously assumed supported by most/all
68 * Exit when not a tty device in autoconnect mode
72 * Added non-standard baud rates that are defined on FreeBSD
74 * Capitalized "GitHub" in README
78 Changes since tio v1.16:
80 * Compacted tty_configure() a bit
82 * Fixed automatic baud rate enablement
86 * Added autodetection of available baud rates
88 Various platforms support different baud rates.
90 To avoid adding platform specific handling generic baud rate detection
91 tests are introduced in the configure script. Successfully detected baud
92 rates are automatically enabled. This applies to both the C code and the
93 bash completion script.
96 Baud rates below 57600 are defined by POSIX-1 and supported by most
97 platforms so only baud rate 57600 and above are tested.
99 * Updated bash-completion
101 * Fixed printf() format type
103 * Added Travis build configuration
107 * Generated bash completion at configure time
109 * Reduce code duplication in baud rate detection
111 * Add support for baud rates 200 and 1800
113 * Fixed baudrate type
117 Changes since tio v1.15:
123 * Removed obsolete packaging files
125 * Removed use of deprecated bzero()
129 Changes since tio v1.14:
131 * Removed + to remove potential confusion
133 * Added input digit checks
135 * Fixed license string
137 * Introduced tty_configure()
139 Moved tty configuration actions to tty_configure() in tty.c. This way
140 options.c is strictly about parsing options nothing else.
142 * Function names cleanup
144 * Updated AUTHORS file
146 Added Nick who created the new tio package for Arch Linux.
148 * Fixed tx/rx counters type
152 * Include config.h before standard headers
154 This makes use of 8d6d202 (Enable large file support) for real.
158 * Fixed printf directives for tx/rx counters
160 In 9a66de0affda, types of tx/rx counters were changed from "long" to
161 "unsigned long", but their printf directives remained "%ld".
162 Change them to "%lu" to match the actual types.
166 Changes since tio v1.13:
168 * Fixed tio_printf macro
172 Fixed launch hints not being printed in no autoconnect mode.
174 * Added 'ctrl-t ?' to list available commands
176 * Fixed log mechanism
178 To avoid echoing only log what is received from tty device.
180 * Improved tio output
182 Added titles and indentation to commands output for clearer separation
183 when firing commands repeatedly.
185 Also added print of tio version and quit command hint at launch.
187 * Cleaned up tio print mechanism
193 "allow" is a transitive verb, which requires an object,
194 so "allow to <verb>" is ungrammatical.
200 Changes since tio v1.12:
202 * Fixed some error prints
204 * Fixed error printing for no autoconnect mode
206 Always print errors but only print silent errors when in no autoconnect
209 * Added key command for showing session settings
211 A new key command "ctrl-t i" is added to allow the user to display the
212 various session settings information (baudrate, databits, log file, etc.).
214 This is useful in case you have a running session but have forgotten
215 what the settings are.
219 Changes since tio v1.11:
221 * Consolidated command key handling
223 * Moved delay mechanism into separate function
225 * Retired obsolete usleep()
227 Replaced with nanosleep()
229 * Added simple tx/rx statistics command (ctrl-t s)
231 To display the total number of bytes transmitted/received simply perform the
232 'ctrl-t s' command sequence.
234 This feature can be useful when eg. trying to detect non-printable
237 * Further simplification of key handling
239 Changed so that the "ctrl-t ctrl-t" sequence is now simply "ctrl-t t" to
240 send the ctrl-t key code. This is inspired by screen which does similar
241 to send its command key code (ctrl-a a).
243 This change also eases adding new key commands if needed.
245 Updated man page accordingly.
247 * Cleaned up and simplified key handling
251 * Insert output delay only if something was output
255 Changes since tio v1.10:
257 * Enabled large file support (LFS)
259 Added autotools AC_SYS_LARGEFILE to support 64 bit file size handling.
265 Changes since tio v1.9:
267 * Introduced lock on device file
269 Tio will now test for and obtain an advisory lock on the tty device file
270 to prevent starting multiple sessions on the same tty device.
276 * Treat EOF on stdin as error
280 Changes since tio v1.8:
282 * Cleanup of error handling
284 Introduced consistent way of handling errors and printing error messages.
286 Also upgraded some warnings to errors.
288 * Updated localtime() error message
294 * Fix error handling for select()
296 Previously the error handling code for select() was unreachable.
298 * Removed unneeded quotes from AM_CFLAGS
302 * Fixed setting "tainted"
304 Set "tainted" if and only if any character was read from the device.
306 Ctrl-t is no longer sent to the device on exit, so the trick to avoid
307 its echo is not necessary.
309 Characters read from stdin don't directly affect output, so they
310 shouldn't enable "tainted".
312 * Used \r in color_printf()
314 \033[300D is an unusual way to move the cursor back to column 1.
315 Use straightforward \r instead.
317 * Added missing \r\n to warning messages
319 \n alone is not enough, because the terminal is in raw mode.
323 Changes since tio v1.7:
325 * Fixed enablement of compiler warnings
327 * Fixed log_open() prototype
329 * Fixed index error wrt ctrl-t detection
331 * Fixed handling of ctrl-t
333 Before, when exercising the quit key sequence (ctrl-t + q) the ctrl-t code
334 (0x14) would be sent.
336 This is now fixed so that it is not sent.
338 However, in case it is needed to send ctrl-t to the device it is possible by
339 simply repeating the ctrl-t.
341 Meaning, ctrl-t + ctrl-t = ctrl-t sent to device.
343 * Improved error handling
345 Fixes a memory leak and avoids aggressive busy looping when problems
346 accessing tty device.
348 * Removed redundant log_close() call
350 * Enabled compiler warnings
354 * Stopped copying arguments to fixed-size buffers
356 Don't needlessly copy command-line arguments into fixed-size buffers.
358 Previously the program crashed if an overlong pathname was provided on
359 the command line. Also, some systems (such as GNU Hurd) don't define
362 * Added const to log_open() prototype
364 * Completed the ^g to ^t transition
366 In 72a287f18995 the escape key was changed from ^g to ^t, but some
367 code and comments still referred to the old key.
369 * Used HTTPS for tio.github.io
371 * Man page beautification
373 * Bumped date in man page
375 * Improve man page formatting
377 Use regular font for metacharacters such as "[]", "," or "|";
378 use italic font for metavariables.
380 * Fixed hyphen vs minus vs em-dash confusion in man page
383 \- prints as minus sign;
384 \em prints as em-dash.
388 Changes since tio v1.6:
390 * Changed escape key from ^g to ^t
392 After renaming to "tio" it makes sense to change the escape key
393 accordingly. Hence, the new escape key is ^t.
395 Meaning, in session, its now ctrl-t + q to quit.
399 * Fixed silly "tio or tio" in man page