Commit graph

1201 commits

Author SHA1 Message Date
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
Jakub Wilk
05b6a554d3 Completed the ^g to ^t transition
In 72a287f189 the escape key was changed from ^g to ^t, but some
code and comments still referred to the old key.
2016-05-07 21:00:05 +02:00
Martin Lund
404826d39c Merge pull request #16 from jwilk/https-everywhere
HTTPS for tio.github.io
2016-05-07 18:49:32 +02:00
Martin Lund
c816809db9 Merge pull request #15 from jwilk/man
Man page beautification
2016-05-07 18:49:01 +02:00
Jakub Wilk
cf15601e82 Used HTTPS for tio.github.io 2016-05-07 18:14:33 +02:00
Jakub Wilk
8cd11402e5 Bumped date in man page 2016-05-07 18:05:17 +02:00
Jakub Wilk
fb8e96b5be Improve man page formatting
Use regular font for metacharacters such as "[]", "," or "|";
use italic font for metavariables.
2016-05-07 18:05:17 +02:00
Jakub Wilk
804b215c88 Fixed hyphen vs minus vs em-dash confusion in man page
- prints as hyphen;
\- prints as minus sign;
\em prints as em-dash.
2016-05-07 18:05:09 +02:00