Jakub Wilk
7af9cc93d4
Add support for baud rates 200 and 1800
2016-05-25 22:28:23 +02:00
Jakub Wilk
329e70a501
Fixed baudrate type
2016-05-25 20:45:41 +02:00
Martin Lund
3be7137c29
Fixed printf() format type
2016-05-25 18:35:33 +02:00
Martin Lund
399598fd31
Removed use of deprecated bzero()
2016-05-23 20:07:49 +02:00
Martin Lund
efef2fa254
Removed + to remove potential confusion
2016-05-23 19:20:11 +02:00
Martin Lund
81be02fc03
Added input digit checks
2016-05-23 19:01:40 +02:00
Martin Lund
aecc829829
Fixed license string
2016-05-23 18:11:08 +02:00
Martin Lund
e920cc9b32
Introduced tty_configure()
...
Moved tty configuration actions to tty_configure() in tty.c. This way
options.c is strictly about parsing options nothing else.
2016-05-23 18:03:13 +02:00
Martin Lund
1f45b8d91d
Function names cleanup
2016-05-23 08:50:47 +02:00
Jakob Haufe
82063b73fb
Include config.h before standard headers
...
This makes use of 8d6d202 (Enable large file support) for real.
2016-05-21 21:15:33 +02:00
Jakub Wilk
f2fe52b600
Fixed printf directives for tx/rx counters
...
In 9a66de0aff , types of tx/rx counters were changed from "long" to
"unsigned long", but their printf directives remained "%ld".
Change them to "%lu" to match the actual types.
2016-05-21 16:42:49 +02:00
Martin Lund
9a66de0aff
Fixed tx/rx counters type
2016-05-21 10:31:41 +02:00
Martin Lund
fa079c6852
Fixed tio_printf macro
2016-05-20 20:49:16 +02:00
Martin Lund
065ee51291
Fixed launch hints
...
Fixed launch hints not being printed in no autoconnect mode.
2016-05-20 20:19:42 +02:00
Martin Lund
59a537f7dd
Added 'ctrl-t ?' to list available commands
2016-05-20 20:10:12 +02:00
Martin Lund
66d5cf5456
Fixed log mechanism
...
To avoid echoing only log what is received from tty device.
2016-05-20 19:51:12 +02:00
Martin Lund
8ddabb1908
Improved tio output
...
Added titles and indentation to commands output for clearer separation
when firing commands repeatedly.
Also added print of tio version and quit command hint at launch.
2016-05-20 19:36:23 +02:00
Martin Lund
dc455eb0c2
Merge branch 'master' of github.com:tio/tio
2016-05-20 15:19:46 +02:00
Martin Lund
7eb64748da
Cleaned up tio print mechanism
2016-05-20 15:18:48 +02:00
Martin Lund
79adb44d1b
Fixed some error prints
2016-05-18 22:27:31 +02:00
Martin Lund
dd49d07547
Fixed error printing for no autoconnect mode
...
Always print errors but only print silent errors when in no autoconnect
mode.
2016-05-18 21:28:08 +02:00
Martin Lund
ffe87bc566
Added key command for showing session settings
...
A new key command "ctrl-t i" is added to allow the user to display the
various session settings information (baudrate, databits, log file, etc.).
This is usefull in case you have a running session but have forgotten
what the settings are.
2016-05-18 15:29:09 +02:00
Martin Lund
20c43dcf7c
Consolidated command key handling
2016-05-18 09:06:40 +02:00
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
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
156f06c711
Updated tio title
2016-05-16 15:31:56 +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
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
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
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
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
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
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