Commit graph

390 commits

Author SHA1 Message Date
Martin Lund
59c9b867c3 Update README with build status 2022-02-10 05:51:01 +01:00
Martin Lund
64ed36966b Update README 2022-02-10 05:38:59 +01:00
Martin Lund
bfea34a978 Replace Travis with circleCI 2022-02-10 05:33:46 +01:00
Martin Lund
4e2c6725d5 Update README 2022-02-10 05:21:38 +01:00
Martin Lund
e9208d693e Replace autotools with meson
To introduce much simpler build configuration which is also easier to
maintain.
2022-02-10 05:09:32 +01:00
Martin Lund
c01152bb38 Fix man page 2022-02-09 19:49:02 +01:00
Martin Lund
7a2a18232d Add list serial devices feature
For convenience, add a --list-devices option which lists the available
serial devices.
2022-02-08 23:13:34 +01:00
Martin Lund
6310f28d2c Shorten timestamp description 2022-02-08 21:47:55 +01:00
Martin Lund
d35c607d1a Cleanup: Use dot notation for default options struct 2022-02-08 21:38:16 +01:00
Sylvain LAFRASSE
c2024368a0
Add '-t' option description for time stamping. 2022-02-08 12:02:24 +01:00
Sylvain LAFRASSE
c6d996550a
Add description for time stamping. 2022-02-07 17:48:32 +01:00
Sylvain LAFRASSE
4931c30317
Add attila-v for PR #129 (Refine timestamps with milliseconds and ISO-8601 format). 2022-02-07 17:23:20 +01:00
attila-v
65153c0d03
Refine timestamps with milliseconds and ISO-8601 format (#129).
* Show milliseconds too in the timestamp (#114) and log file (#124)
* Change timestamp format to ISO-8601.
Co-authored-by: Attila Veghelyi <aveghelyi@dension.com>
Co-authored-by: Sylvain LAFRASSE <sly74fr@users.noreply.github.com>
2022-02-07 17:18:36 +01:00
Martin Lund
101e32749b Update README 2022-02-07 04:06:36 +01:00
Sylvain LAFRASSE
b46ea8b758
Add Mariusz Midor for PR #80 (Newline: handle booth NL and CR). 2022-02-02 17:39:06 +01:00
Sylvain LAFRASSE
febefa638f
Merge pull request #80 from marmidr/crlf
Newline: handle booth NL and CR
2022-02-02 17:36:01 +01:00
Martin Lund
95389f4dde Add Sylvain as official co-maintainer
Signed-off-by: Martin Lund <martin.lund@keep-it-simple.com>
2021-10-27 13:47:57 +02:00
Martin Lund
3a1fd79fcb
Merge pull request #120 from nh26223/newline_fix_for_hex_mode
Output newline on stdout with hex print mode
2021-01-21 09:50:47 +01:00
Yin Fengwei
0f0279bd3f Output newline on stdout with hex print mode
This is to fix the issue #104. The timestamp will always be
printed at the beginning of line:

[10:25:56] Switched to hexadecimal mode
0d 0a 0d [10:25:57] 41 43 52 4e 3a 5c 3e 0d 0a 0d [10:25:58] 41

is changed to:

[12:34:56] 45 72 72 6f 72 3a 20 49 6e 76 61 6c 69 64 20
[12:34:56] 41 43 52 4e 3a 5c 3e
[12:34:56] 41 43 52 4e 3a 5c 3e
[12:34:57] 41 43 52 4e 3a 5c 3e 6c 73
2021-01-21 12:39:51 +08:00
Martin Lund
1079991608 Update AUTHORS 2021-01-18 02:25:54 +01:00
Martin Lund
17fafd9918
Merge pull request #112 from henrikbrixandersen/bash_completion_ttys
Add bash completion of tty devices
2021-01-18 01:19:45 +01:00
Martin Lund
76c04f5015
Merge pull request #111 from henrikbrixandersen/bash_completion_timestamp
Add -t/--timestamp to bash completion script.
2021-01-18 01:18:48 +01:00
Martin Lund
457075629d
Merge pull request #106 from hzeller/make-local-echo-work-with-buffered-output
Local echo: show character by character even if stdout buffered.
2021-01-18 01:17:34 +01:00
Martin Lund
a4da50dbd8
Merge pull request #105 from zagor/show-error
Show error when failing to open a tty
2021-01-18 01:16:41 +01:00
Martin Lund
07639da625
Merge pull request #102 from AlbanBedel/fix-out-of-tree-builds
Fix out of tree builds
2021-01-18 01:16:02 +01:00
Martin Lund
cda42b0dbb
Merge pull request #98 from ffontaine/master
src/setspeed2.c: fix redefinition of termio
2021-01-18 01:14:17 +01:00
Martin Lund
161f613e08
Merge pull request #96 from eerimoq/master
Exit if output speed cannot be set.
2021-01-18 01:13:42 +01:00
Martin Lund
960c3c0f6c
Merge pull request #117 from sur5r/posix-comparison
Make comparison POSIX compliant
2021-01-18 01:11:58 +01:00
Martin Lund
553939e002
Merge pull request #94 from larsks/bug/92-fflush
fflush() after putchar() for print_hex and print_normal
2021-01-18 01:11:19 +01:00
Martin Lund
50e33a1a5b
Merge branch 'master' into bug/92-fflush 2021-01-18 01:11:05 +01:00
Martin Lund
354bd6e185
Merge pull request #93 from larsks/bug/92
Disable line buffering in stdout
2021-01-18 01:09:35 +01:00
Martin Lund
3a1eea216a
Merge pull request #91 from geo-stark/master
add serial lines manual control
2021-01-18 01:08:09 +01:00
Martin Lund
6c86faf6f9
Merge pull request #86 from sly74fr/feature/TimestampsInLogFile_#84
Resolved tio/tio#84: Added timestamps in log file if enabled.
2021-01-18 01:05:12 +01:00
Martin Lund
3195132fa1
Merge pull request #85 from Serkora/leflush
Flush every local echo-ed char
2021-01-18 01:04:27 +01:00
Jakob Haufe
93771ffab8
Make comparison POSIX compliant
String comparison with == is not POSIX compliant and can fail with e.g.
dash.

Fixes https://github.com/tio/tio/issues/115
2020-10-07 10:08:31 +02:00
Henrik Brix Andersen
6aff97100f Add bash completion of tty devices. 2020-08-13 11:35:16 +02:00
Henrik Brix Andersen
6df80fa503 Add -t/--timestamp to bash completion script. 2020-08-13 10:47:54 +02:00
Henner Zeller
31dccd6633 Local echo: show character by character even if stdout buffered.
Signed-off-by: Henner Zeller <h.zeller@acm.org>
2020-05-25 19:59:20 -07:00
Björn Stenberg
71c1d7c540 Show error when failing to open a tty 2020-05-19 16:00:21 +02:00
Alban Bedel
4e5525a48f Fix out of tree builds
Out of tree builds are currently broken because $(top_srcdir)src/include
is not in the search path. In tree builds are working because autconf add
$(top_builddir)/src/include to the search path for the generated config.h.
As $(top_builddir) and $(top_srcdir) are identical during in tree builds
the search path still end up beeing somehow correct.

To fix this add -I$(srcdir)/include to the CPPFLAGS in Makefile.am.
2020-04-06 17:04:07 +02:00
Fabrice Fontaine
7a84120f7b src/setspeed2.c: fix redefinition of termio
Include ioctls.h and termbits.h from asm-generic instead of asm to avoid
the following build failure:

In file included from setspeed2.c:24:0:
/home/naourr/work/instance-0/output-1/host/sparc64-buildroot-linux-gnu/sysroot/usr/include/asm/termbits.h:17:8: error: redefinition of 'struct termio'
 struct termio {
        ^~~~~~
In file included from /home/naourr/work/instance-0/output-1/host/sparc64-buildroot-linux-gnu/sysroot/usr/include/sys/ioctl.h:29:0,
                 from setspeed2.c:22:
/home/naourr/work/instance-0/output-1/host/sparc64-buildroot-linux-gnu/sysroot/usr/include/bits/ioctl-types.h:36:8: note: originally defined here
 struct termio
        ^~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/1a7418b9cd11374a250f7509d5bddcc864375e1c

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2019-12-27 21:41:47 +01:00
Erik Moqvist
ad7b11e6e8 Exit if output speed cannot be set. 2019-10-19 17:08:04 +02:00
Lars Kellogg-Stedman
c6af6c0804 fflush() after putchar() for print_hex and print_normal
In order for local echo to work properly, we have to either call
fflush(stdout) after every character or just disable line buffering.
This change calls fflush() after putchar().

Closes #92
2019-10-16 22:48:44 -04:00
Lars Kellogg-Stedman
4d4ee466f7 Disable line buffering in stdout
In order for local echo to work properly, we have to either call
fflush(stdout) after every character or just disable line buffering.
This change uses setbuf(stdout, NULL) to do the latter.

Closes #92
2019-10-08 22:06:05 -04:00
George Stark
5217d9842b dont show line state if ioctl failed 2019-09-19 17:39:01 +03:00
George Stark
04d92740f5 add serial lines manual control 2019-09-19 15:13:38 +03:00
Sylvain LAFRASSE
a84f762106 Resolved tio/tio#84: Added timestamps in log file if enabled. 2019-05-24 10:46:02 +02:00
arichi
fca5429ae7 Flush every local echo char
Flush stdout at every char in case it
happens to be buffered.
2019-05-13 23:53:08 +08:00
Martin Lund
39a8f63640 Add command to show version
The key sequence ctrl-t v will now show the version of tio.
2018-11-27 23:56:34 +01:00
Martin Lund
42eb14dd77 Align format of timestamps 2018-11-27 23:38:21 +01:00