Martin Lund
d34fa1c1ad
Rename mapping flag MSB2LSB to IMSB2LSB
...
This is the correct naming since we are changing the input bit order on
input from the serial device.
2024-06-29 12:14:34 +02:00
Martin Lund
4723cc3f4e
Add OIGNCR mapping flag
...
Ignores CR on output to serial device.
2024-06-27 20:09:25 +02:00
Martin Lund
8c471105fe
Fix line input mode ignoring characters ABCD
2024-06-27 18:54:19 +02:00
Martin Lund
b9902bbd78
Fix tainted print
2024-06-27 18:43:16 +02:00
Jakob Haufe
c5afd86b9a
Fix typos
2024-06-15 17:16:23 +02:00
Martin Lund
053ae53f19
Update configuration output
2024-06-15 16:00:58 +02:00
Martin Lund
8f77ad5830
Clean up script run interaction text
2024-06-15 15:58:08 +02:00
Martin Lund
be4fc0908f
Fix unbounded writes
2024-06-15 15:06:10 +02:00
Martin Lund
6ec2ac19d0
Add history and editing feature to line input mode
...
Use up and down arrow keys to navigate history.
Use left and right arrow keys to move cursor back and forth.
We try mimic the behaviour of GNU readline which we can not use because
we also need to react to key commands.
2024-06-15 14:31:23 +02:00
Martin Lund
bed34a0b9a
Reuse socket address
...
To avoid having to wait for socket timeout when restarting server.
2024-06-11 15:18:38 +02:00
Martin Lund
134038c1ce
Fix line input mode
...
Fix so that ABCD are no longer ignored.
2024-06-09 13:03:59 +02:00
Martin Lund
003b2e37d4
Make sure ICRNL, IGNCR, INLCR take effect
2024-06-02 23:35:36 +02:00
Martin Lund
8014ef68c0
Cleanup parsing of mapping flags
2024-06-02 14:26:39 +02:00
Vyacheslav Patkov
563c4fa6ea
Show current mappings in the configuration printout
2024-06-02 13:22:33 +02:00
Vyacheslav Patkov
d1d6b45e8e
Use "ctrl-t m" to change mappings interactively
2024-06-02 13:22:33 +02:00
Vyacheslav Patkov
f148a1413c
Prompt for Lua script or shell command in interactive session
2024-06-01 16:23:51 +02:00
Martin Lund
133789517a
Add group write permission to xymodem received file
2024-05-29 09:26:08 +02:00
Martin Lund
7e0bd980f2
Fix missing open() flags in xymodem_receive()
2024-05-29 01:41:14 +02:00
Eliot Alan Foss
d10e762a7d
Added support to receive XMODEM-CRC files from the connected serial port.
2024-05-29 01:23:00 +02:00
Martin Lund
ccc01433b7
Include correct header for poll()
2024-05-16 19:16:17 +02:00
Martin Lund
5b5248929e
Force destructive backspace when using local echo
...
Only takes effect in normal output mode.
2024-05-14 23:22:05 +02:00
Martin Lund
8f45d6f688
Fix local-echo in configuration file
2024-05-14 22:20:59 +02:00
Martin Lund
3f616a47c8
Fix includes
2024-05-13 11:04:09 +02:00
Martin Lund
747ac62733
Fix includes
2024-05-13 10:57:27 +02:00
Martin Lund
c76a4d0172
Fix includes
2024-05-12 08:57:59 +02:00
Martin Lund
ae9c8edbca
Clean up includes
2024-05-11 10:50:01 +02:00
Martin Lund
f71ffeabb7
Force socket write operation to ignore any signals
2024-05-10 14:29:05 +02:00
Martin Lund
86f1b3881d
Fix shadow variable
2024-05-08 10:31:32 +02:00
Martin Lund
9066523229
Do not print error when using --list with broken config file
2024-05-07 19:08:10 +02:00
Martin Lund
016c81291e
Clean up completion script
2024-05-07 14:48:57 +02:00
Martin Lund
e75e19eb00
Add option '--exec <command>' for running shell command
...
Runs shell command with I/O redirected to device.
2024-05-07 14:38:31 +02:00
Martin Lund
545d473220
Make sure all error output is directed to stderr
2024-05-07 14:21:43 +02:00
Martin Lund
873bd6973d
Fix shadow variables
2024-05-07 09:50:07 +02:00
Martin Lund
b490233988
Fix build on older GNU/Linux systems without statx
2024-05-05 21:02:28 +02:00
Martin Lund
242a2ea843
Fix line ending in --list output
2024-05-04 13:16:28 +02:00
Martin Lund
c88cd3c5f3
Print location of configuratin file in --list output
2024-05-03 18:23:53 +02:00
Martin Lund
6310a9fabc
Fix alignment of profile listing
2024-05-03 15:26:55 +02:00
Martin Lund
ec8f63f06d
Improve --list feature on non-linux platform
2024-05-03 14:12:47 +02:00
Martin Lund
31647a934c
List available profiles in --list output
2024-05-03 11:35:48 +02:00
Martin Lund
3b3fca2e8b
Always message when saving log file
2024-05-03 10:45:49 +02:00
Martin Lund
60caede5dd
Add support for using TID as device in config file
2024-05-03 10:32:33 +02:00
Martin Lund
04dfa682c9
Fix use of invalid flag with regexec()
2024-05-03 09:19:21 +02:00
Martin Lund
62a4a93dec
Fix potential buffer overflow in match_and_replace()
2024-05-03 08:39:58 +02:00
Martin Lund
7aa2d3fee2
Fix profile autocompletion
2024-05-03 02:12:12 +02:00
Martin Lund
0e9dbcbc77
Replace use of stat() with fstat()
...
For better security.
2024-05-02 22:30:47 +02:00
Martin Lund
68c78222e1
Fix hexN output mode
2024-05-02 21:50:48 +02:00
Martin Lund
15ba034ce5
Fix submenu response when invalid key hit
2024-05-02 19:38:14 +02:00
Martin Lund
65c5a068d8
Replace inih with glib key file parser
...
After including the use of glib we might as well replace inih
with the glib key file parser.
All configuraiton file parsing has been reworked and also the options
parsing has been cleaned up, resulting in better and stricter
configuration file and option value checks.
Compared to old, configuration files now requires any default
configurations to be put in a group/section named [default].
Configuration file keywords such as "enable", "disable", "on",
"off", "yes", "no", "0", "1" have been retired. Now only "true" and
"false" apply to boolean configuration options. This is done to simplify
things and avoid any confusion.
The pattern option feature has been reworked so now the user can now
access the full match string and any matching subexpression using the
%mN syntax.
For example:
[usb devices]
pattern = usb([0-9]*)
device = /dev/ttyUSB%m1
Then when using tio:
$ tio usb12
%m0 = 'usb12' // Full match string
%m1 = 12 // First match subexpression
Which results in device = /dev/ttyUSB12
2024-05-02 18:35:37 +02:00
Rui Chen
3b77eb35cf
fix: add build patch for FNM_EXTMATCH
...
run into the following build failure
```
cc -Isrc/tio.p -Isrc -I../src -I/opt/homebrew/Cellar/glib/2.80.0_2/include/glib-2.0 -I/opt/homebrew/Cellar/glib/2.80.0_2/lib/glib-2.0/include -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/Cellar/pcre2/10.43/include -I/opt/homebrew/Cellar/inih/58/include -I/opt/homebrew/include/lua -fdiagnostics-color=always -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-result -DHAVE_IOSSIOSPEED -MD -MQ src/tio.p/misc.c.o -MF src/tio.p/misc.c.o.d -o src/tio.p/misc.c.o -c ../src/misc.c
../src/misc.c:201:38: error: use of undeclared identifier 'FNM_EXTMATCH'
if (fnmatch(pattern, string, FNM_EXTMATCH) == 0)
^
1 error generated.
```
Signed-off-by: Rui Chen <rui@chenrui.dev>
2024-04-30 10:02:19 +02:00
Rui Chen
b763f1289b
fix: add macos build patch for fs_get_creation_time
...
Signed-off-by: Rui Chen <rui@chenrui.dev>
2024-04-29 20:21:51 +02:00