Commit graph

466 commits

Author SHA1 Message Date
Sylvain LAFRASSE
a543fbd7ef Factorize timestamp parsing to be coherent with command line format in configuration file. 2022-03-30 17:11:50 +02:00
Martin Lund
1ec39d1c7b Make libinih a fallback dependency
This means that in case meson does not find libinih it will
automatically clone libinih and include it in the build.

The libinih library is reconfigured to be statically built so that no
shared object will be installed.
2022-03-29 17:54:33 +02:00
Martin Lund
f229ee2f96 Update man page 2022-03-24 22:52:11 +01:00
Martin Lund
8975c445c2 Update README 2022-03-21 20:37:21 +01:00
Martin Lund
c4d14c1d76 Bump version 2022-03-21 11:17:50 +01:00
Martin Lund
c3969ec81a Update ChangeLog 2022-03-21 10:56:34 +01:00
Martin Lund
6c5e748e15 Update version date 2022-03-21 10:55:47 +01:00
Martin Lund
09bcd91bf0 Add support for defaults in config file
If no section name is specified the configuration will be considered the
default one.

This allows to set e.g. a default color code for sections which do not
configure a color code.
2022-03-19 18:37:37 +01:00
Martin Lund
03cf4ef197 Handle SIGHUP
Handle SIGHUP so that the registered exit handlers are called to restore
the terminal back to its orignal state.
2022-03-18 19:19:11 +01:00
Martin Lund
ed97a8dc21 Update man page 2022-03-12 11:20:03 +01:00
Martin Lund
e81e76473a Add color configuration support 2022-03-11 16:09:21 +01:00
Martin Lund
410fc8bffe Bypass unused result warnings 2022-03-11 15:30:33 +01:00
Martin Lund
659336af51 Force dependency on libinih
Configuration file support is considered a mandatory feature.
2022-03-11 15:28:35 +01:00
Martin Lund
8965b7b42c Update headers 2022-03-11 15:15:39 +01:00
Martin Lund
a2b164519f Mostly cosmetic updates 2022-03-11 15:11:43 +01:00
Martin Lund
ea0dd3e602 Update AUTHORS 2022-03-11 14:35:26 +01:00
Martin Lund
745244df06 Update man page 2022-03-11 14:34:33 +01:00
Martin Lund
e9d5a23129 Move string_to_long() to misc.c 2022-03-11 13:33:35 +01:00
Martin Lund
d7b038d4ef Update CircleCI config 2022-03-11 13:26:07 +01:00
Martin Lund
02c0c61e07
Merge pull request #109 from Liambeguin/config-file
Add support for a configuration file
2022-03-11 13:16:17 +01:00
Liam Beguin
25123fefea document configuration file options
Signed-off-by: Liam Beguin <liambeguin@gmail.com>
2022-03-10 10:34:52 -05:00
Liam Beguin
2e5c1ff20c add support for a configuration file
Signed-off-by: Liam Beguin <liambeguin@gmail.com>
2022-03-10 10:34:52 -05:00
Liam Beguin
2795ef6c79 misc: add _unused macro
Some parameters are expected to be unused.
Add a basic macro to mute these compiler warnings.

Signed-off-by: Liam Beguin <liambeguin@gmail.com>
2022-03-09 20:39:48 -05:00
Liam Beguin
04da651f09 options: expose string_to_long()
Expose string_to_long() so that other source files can use it.

Signed-off-by: Liam Beguin <liambeguin@gmail.com>
2022-03-09 20:15:30 -05:00
Martin Lund
0a825d87cf Update tio gif 2022-02-25 07:25:34 +01:00
Martin Lund
b23397caa0 Fix text 2022-02-25 07:16:14 +01:00
Martin Lund
166d36d7d4 Correct text 2022-02-23 15:35:46 +01:00
Martin Lund
3773fddb6a Update README 2022-02-23 15:17:42 +01:00
Martin Lund
950373d10d Update LICENSE date 2022-02-20 08:19:50 +01:00
Martin Lund
39a9c4bbda Remove redundant COPYING file 2022-02-20 08:19:29 +01:00
Martin Lund
e11fcbd2f4 Bump version 2022-02-20 01:09:50 +01:00
Martin Lund
88974852ae Update version_date 2022-02-20 00:51:09 +01:00
Martin Lund
3c12616128 Update ChangeLog 2022-02-20 00:50:32 +01:00
Martin Lund
690fbebfc7 Bump version 2022-02-19 13:24:12 +01:00
Martin Lund
9f2cac4e41 Fix log exit print 2022-02-19 10:00:21 +01:00
Martin Lund
8f63f755da Cleanup color option 2022-02-19 09:45:02 +01:00
Martin Lund
45210bc741 Add support for automatically generated log filename
Automatically generate log filename if none is provided.

The auto generated file name is on the form:
"tio_DEVICE_YYYY-MM-DDTHH:MM:SS.log"
2022-02-19 09:29:33 +01:00
Martin Lund
d8a822a3fb Add support for configurable timestamp format
Also changes default timestamp format from ISO8601 to classic 24-hour
format as this is assumed to be the format that most users would prefer.

And reintroduces strict but optional ISO8601 format.

This feature allows to easily add more timestamp formats in the future.
2022-02-19 02:26:10 +01:00
Martin Lund
47694904cf Update README 2022-02-18 04:44:10 +01:00
Martin Lund
63ef65804f Reintroduce asm-generic/ioctls.h
It is needed for ppc builds.
2022-02-17 05:47:06 +01:00
Martin Lund
7ffeeccdf5 Merge branch 'osx-baudrate' of https://github.com/robey/tio into robey-osx-baudrate 2022-02-16 05:24:35 +01:00
Martin Lund
27f4d31380 Add macro hack to workaround older buggy glibc 2022-02-16 02:26:36 +01:00
Martin Lund
cbfa118a2b Update version_date 2022-02-15 12:05:23 +01:00
Martin Lund
a1afc2bcfa Update ChangeLog 2022-02-15 12:04:09 +01:00
Sylvain LAFRASSE
2d1e0f1233
Fix TTY device listing on Darwin. (#136) 2022-02-15 11:15:39 +01:00
Martin Lund
3d08787142 Fix setspeed2 compilation 2022-02-15 03:47:24 +01:00
Martin Lund
1ae889fdb2 Bump version 2022-02-15 00:58:44 +01:00
Martin Lund
0e62995e6e Only apply color formatting when using color option
To help the color blind who may use custom terminal foreground /
background colors.
2022-02-15 00:48:10 +01:00
Martin Lund
a699561211 Update README 2022-02-14 22:50:47 +01:00
Martin Lund
274cb63197 Add '-c, --color' option
Allow user to select which ANSI color code to use to colorize the tio
text. To successfully set the color the color code must be in the range
0..255.

If color code is negative tio will print all available ANSI colors.

The default color is changed to bold white to make tio defaults usable
for most users, including color blind users.
2022-02-14 22:25:29 +01:00