Martin Lund
13a8bc7790
Moved delay mechanism into separate function
2016-05-18 08:17:07 +02:00
Martin Lund
14fc053e8b
Retired obsolete usleep()
...
Replaced with nanosleep()
2016-05-17 22:21:12 +02:00
Martin Lund
f1fbab1673
Merge pull request #31 from jwilk/output-delay
...
Insert output delay only if something was output
2016-05-17 22:11:35 +02:00
Jakub Wilk
dc997b2a8a
Insert output delay only if something was output
2016-05-17 22:04:04 +02:00
Martin Lund
a8103b8983
Added simple tx/rx statistics command (ctrl-t s)
...
To display the total number of bytes transmitted/received simply perform the
'ctrl-t s' command sequence.
This feature can be useful when eg. trying to detect non-printable
characters.
2016-05-17 16:08:19 +02:00
Martin Lund
0687d7ff7b
Further simplification of key handling
...
Changed so that the "ctrl-t ctrl-t" sequence is now simply "ctrl-t t" to
send the ctrl-t key code. This is inspired by screen which does similar
to send its command key code (ctrl-a a).
This change also allows to easier add new key commands if needed.
Updated man page accordingly.
2016-05-17 11:59:56 +02:00
Martin Lund
9571a84d70
Cleaned up and simplified key handling
2016-05-16 22:53:55 +02:00
Martin Lund
2a5ee61c54
Bumped version
2016-05-16 16:05:16 +02:00
Martin Lund
4c6947df3a
Updated ChangeLog
2016-05-16 15:51:59 +02:00
Martin Lund
156f06c711
Updated tio title
2016-05-16 15:31:56 +02:00
Martin Lund
2219fb64fb
Bumped version
2016-05-16 10:09:31 +02:00
Martin Lund
8d6d202f4e
Enabled large file support (LFS)
...
Added autotools AC_SYS_LARGEFILE to support 64 bit file size handling.
2016-05-16 10:02:58 +02:00
Martin Lund
e19076a468
Bumped version
2016-05-15 13:20:37 +02:00
Martin Lund
3403d4214c
Updated ChangeLog
2016-05-15 13:19:09 +02:00
Martin Lund
315ebd7007
Merge pull request #29 from jwilk/stdin-eof
...
Treat EOF on stdin as error
2016-05-13 21:15:18 +02:00
Jakub Wilk
2a03a05a49
Treat EOF on stdin as error
2016-05-13 20:41:39 +02:00
Martin Lund
ef98fc7fa2
Introduced lock on device file
...
Tio will now test for and obtain an advisory lock on the tty device file
to prevent starting multiple sessions on the same tty device.
2016-05-12 15:44:59 +02:00
Martin Lund
8be401559d
Updated AUTHORS
2016-05-10 12:41:37 +02:00
Martin Lund
903bf963b9
Updated ChangeLog
2016-05-10 07:52:18 +02:00
Martin Lund
daa7d496ba
Merge pull request #28 from jwilk/error-handling
...
Fix error handling for select()
2016-05-09 22:19:36 +02:00
Jakub Wilk
bfe5c07279
Fix error handling for select()
...
Previously the error handling code for select() was unreachable.
2016-05-09 22:17:06 +02:00
Martin Lund
76aa8ca727
Bumped version
2016-05-09 22:04:06 +02:00
Martin Lund
ad551b363e
Cleanup of error handling
...
Introduced consistent way of handling errors and printing error messages.
Also upgraded some warnings to errors.
2016-05-09 17:28:43 +02:00
Martin Lund
4e2bcde010
Updated localtime() error message
2016-05-09 14:54:22 +02:00
Martin Lund
3c5cc029a8
Cleanup
2016-05-09 01:04:30 +02:00
Martin Lund
869527d0fb
Merge pull request #26 from jwilk/makefile-quoting
...
Removed unneeded quotes from AM_CFLAGS
2016-05-09 00:53:13 +02:00
Martin Lund
93c05fdc24
Merge pull request #25 from jwilk/tabs-not-even-once
...
Expanded tabs
2016-05-09 00:52:30 +02:00
Martin Lund
dbe4b8f6ac
Merge pull request #24 from jwilk/tainted
...
Fixed setting "tainted"
2016-05-09 00:51:26 +02:00
Martin Lund
f85055d327
Merge pull request #23 from jwilk/ansi-codes
...
Used \r in color_printf()
2016-05-09 00:49:32 +02:00
Jakub Wilk
5c3379b077
Removed unneeded quotes from AM_CFLAGS
2016-05-08 22:55:47 +02:00
Jakub Wilk
5ebe044f53
Expanded tabs
2016-05-08 22:51:58 +02:00
Jakub Wilk
2036b1ebe8
Fixed setting "tainted"
...
Set "tainted" if and only if any character was read from the device.
Ctrl-t is no longer sent to the device on exit, so the trick to avoid
its echo is not necessary.
Characters read from stdin don't directly affect output, so they
shouldn't enable "tainted".
2016-05-08 22:47:53 +02:00
Jakub Wilk
3bcc9e64cf
Used \r in color_printf()
...
\033[300D is an unusual way to move the cursor back to column 1.
Use straightforward \r instead.
2016-05-08 22:21:40 +02:00
Martin Lund
c1e1ffa1c2
Merge pull request #22 from jwilk/error-handling
...
Added missing \r\n to warning messages
2016-05-08 21:53:41 +02:00
Jakub Wilk
3e1f0e9198
Added missing \r\n to warning messages
...
\n alone is not enough, because the terminal is in raw mode.
2016-05-08 21:32:59 +02:00
Martin Lund
bc3cba71d2
Updated ChangeLog
2016-05-08 17:47:58 +02:00
Martin Lund
f1948c374f
Fixed enablement of compiler warnings
2016-05-08 15:18:03 +02:00
Martin Lund
65b6d2fcba
Fixed log_open() prototype
2016-05-08 13:23:06 +02:00
Martin Lund
3e08f8a489
Merge branch 'master' of github.com:tio/tio
2016-05-08 13:19:26 +02:00
Martin Lund
7c493d957c
Fixed index error wrt ctrl-t detection
2016-05-08 13:18:02 +02:00
Martin Lund
5f4a836882
Merge pull request #20 from jwilk/no-strcpy
...
Stopped copying arguments to fixed-size buffers
2016-05-08 12:57:07 +02:00
Jakub Wilk
c3b948725e
Stopped copying arguments to fixed-size buffers
...
Don't needlessly copy command-line arguments into fixed-size buffers.
Previously the program crashed if an overlong pathname was provided on
the command line. Also, some systems (such as GNU Hurd) don't define
MAXPATHLEN at all.
2016-05-08 12:49:59 +02:00
Jakub Wilk
8fe74a7579
Added const to log_open() prototype
2016-05-08 12:40:47 +02:00
Martin Lund
b84ed2f4bd
Bumped version
2016-05-08 12:15:21 +02:00
Martin Lund
755ac53553
Fixed handling of ctrl-t
...
Before, when exercising the quit key sequence (ctrl-t + q) the ctrl-t code
(0x14) would be sent.
This is now fixed so that it is not sent.
However, in case it is needed to send ctrl-t to the device it is possible by
simply repeating the ctrl-t.
Meaning, ctrl-t + ctrl-t = ctrl-t sent to device.
2016-05-08 11:39:34 +02:00
Martin Lund
ece9e7f918
Improved error handling
...
Fixes a memory leak and avoids aggressive busy looping when problems
accessing tty device.
2016-05-08 00:37:27 +02:00
Martin Lund
4c59995db8
Removed redundant log_close() call
2016-05-08 00:32:11 +02:00
Martin Lund
fb7e9fab5f
Merge pull request #17 from jwilk/ctrl-g
...
Completed the ^g to ^t transition
2016-05-07 21:10:50 +02:00
Martin Lund
0e38783636
Merge branch 'master' of github.com:tio/tio
2016-05-07 21:08:15 +02:00
Martin Lund
89ba0cc59b
Enabled compiler warnings
2016-05-07 21:08:07 +02:00