Commit graph

876 commits

Author SHA1 Message Date
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
Martin Lund
e88c4d55da Updated ChangeLog 2016-05-07 15:24:47 +02:00
Martin Lund
b2d33abfe9 Bumped version 2016-05-07 14:53:47 +02:00
Martin Lund
94073f7d58 Updated README 2016-05-07 14:44:02 +02:00
Martin Lund
acc4d6f80f Merge branch 'master' of github.com:tio/tio 2016-05-07 14:35:45 +02:00
Martin Lund
72a287f189 Changed escape key from ^g to ^t
After renaming to "tio" it makes sense to change the escape key
accordingly. Hence, the new escape key is ^t.

Meaning, in session, its now ctrl-t + q to quit.
2016-05-07 14:31:24 +02:00
Martin Lund
789c5d8e4f Merge pull request #11 from jwilk/spelling
Fixed silly "tio or tio" in man page
2016-05-07 14:17:29 +02:00
Jakub Wilk
6cc9a8ba4c Fixed silly "tio or tio" in man page 2016-05-07 13:50:12 +02:00
Martin Lund
d491e5333c Merge pull request #10 from jwilk/spelling
Fixed typo
2016-05-04 23:45:08 +02:00
Jakub Wilk
dd757c925a Fixed typo 2016-05-04 21:44:50 +02:00
Martin Lund
f6b69d244d Updated ChangeLog 2016-05-04 20:29:35 +02:00
Martin Lund
9dd21af867 Renamed "gotty" to "tio"
Renamed to "tio" because it is shorter and this new name also more
precisely reflects what the program is - a simple TTY terminal I/O
application.

"tio" can be considered short for terminal I/O or TTY I/O or a
combination of the two, whichever you prefer.

Also, wanted to avoid naming conflicts with other projects.
2016-05-04 20:20:06 +02:00
Martin Lund
f5f7ba7d8a Updated ChangeLog 2016-05-02 12:42:06 +02:00
Martin Lund
ef9acd3780 Bumped version 2016-05-01 21:22:02 +02:00
Martin Lund
bbda0b8851 Added log feature
Added "--log <filename>" option which writes all activity to specified
file.
2016-05-01 21:21:05 +02:00
Martin Lund
d574172205 Add support for configurable bash completion path
Rewrote the configure script to support the following options:

--with-bash-completion-dir=PATH
--without-bash-completion-dir
2016-05-01 21:07:25 +02:00
Martin Lund
ce15665214 Merge branch 'master' of github.com:gotty/gotty 2016-05-01 11:43:12 +02:00
Martin Lund
8a125eb784 Merge pull request #9 from sur5r/master
Don't hardcode path for bash completions
2016-04-30 18:27:15 +02:00
Jakob Haufe
cf5f62ffb6
Don't hardcode path for bash completions
Instead, use pkg-config to find out where the completions should go.
2016-04-30 16:57:24 +02:00
Martin Lund
43dae45dbf Update ChangeLog 2016-04-28 08:22:29 +02:00
Martin Lund
a68421c263 Bumped version 2016-04-28 08:17:13 +02:00
Martin Lund
ebd65400a1 Fix tty device file accessibility test
Fixes ending up in a freeze when a tty device exists but is not
readable.
2016-04-25 15:31:49 +02:00
Martin Lund
952be06384 Updated ChangeLog 2016-04-24 16:06:21 +02:00
Martin Lund
9f38512285 Do not quit on error
This makes gotty more robust in the sense it will not quit when an error
occurs but simply continue to try reconnect.
2016-04-24 15:43:56 +02:00
Martin Lund
c6c4a4b1dd Minor cleanup 2016-04-24 09:20:27 +02:00
Martin Lund
362976354b Updated version text 2016-04-24 08:44:52 +02:00