Commit graph

18 commits

Author SHA1 Message Date
Martin Lund
e646c50019 Add support for setting non-standard baudrates
Support for non-standard baudrate settings will be automatically enabled
if the termios2 interface is detected available. However, to play it
safe, the old and widely supported termios interface will still be used
when setting standard baudrates.
2017-11-13 13:40:15 +01:00
Martin Lund
9c7e4ba06e Fix bash completion installation
Fixed the configure script to avoid that the bash completion script gets
installed outside of the prefix location. The default install location
is now $prefix/share/bash-completion/completions.

Use the configure option '--with-bash-completion-dir=PATH' if you need
to install the bash completion script elsewhere.
2017-10-01 00:11:31 +02:00
Martin Lund
8f7c32e2e9 Do no distribute src/bash_completion/tio
Since bash completion tio script is now autogenerated from tio.in it
should not be distributed in the tarball.
2016-06-13 08:23:32 +02:00
Jakub Wilk
0f02e6e551 Generated bash completion at configure time 2016-05-26 15:23:19 +02:00
Martin Lund
5406da5ddb Minor cleanups 2016-05-26 09:22:45 +02:00
Martin Lund
8eb0e6d874 Added autodetection of available baud rates
Various platforms supports different baud rates.

To avoid adding platform specific handling generic baud rate detection
tests are introduced in the configure script. Successfully detected baud
rates are automatically enabled. This applies to both the C code and the
bash completion script.

Note:
Baud rates below 57600 are defined by POSIX-1 and supported by most
platforms so only baud rate 57600 and above are tested.
2016-05-26 08:59:18 +02:00
Jakub Wilk
5c3379b077 Removed unneeded quotes from AM_CFLAGS 2016-05-08 22:55:47 +02:00
Martin Lund
f1948c374f Fixed enablement of compiler warnings 2016-05-08 15:18:03 +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
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
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
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
3652268fea Fixed distribution tarball
Fixed missing header files and man page in distribution tarball.
2014-10-21 22:24:28 +02:00
Martin Lund
b6c1135d69 Added timestamp to gotty prompt 2014-10-07 17:45:21 +02:00
Martin Lund
9dfb1debaf Fixed disconnect output
In certain cases the disconnect message would eat a line of output from
the tty device (if any). This is now fixed.
2014-09-30 01:18:29 +02:00
Martin Lund
df8652f05d Completed autocompletion
Autocompletion now resolves all arguments.

Also renamed 'gotty-bash-completion.sh' to 'gotty' to comply with the
normal naming scheme for completion files in /etc/bash_completion.d .
2014-09-27 18:26:12 +02:00
Martin Lund
b0230109b2 Added bash completion for long options 2014-09-27 15:12:15 +02:00
Martin Lund
a14d14d75b Initial import 2014-09-27 11:35:17 +02:00