commit tio for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package tio for openSUSE:Factory checked in at 2024-06-04 12:51:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/tio (Old) and /work/SRC/openSUSE:Factory/.tio.new.24587 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "tio" Tue Jun 4 12:51:11 2024 rev:18 rq:1178355 version:3.3 Changes: -------- --- /work/SRC/openSUSE:Factory/tio/tio.changes 2024-05-13 01:34:06.843424680 +0200 +++ /work/SRC/openSUSE:Factory/.tio.new.24587/tio.changes 2024-06-04 12:51:40.949027037 +0200 @@ -1,0 +2,11 @@ +Thu May 16 19:29:37 UTC 2024 - Martin Hauke <mardnh@gmx.de> + +- Update to version 3.3 + * Force destructive backspace when using local echo + * Only takes effect in normal output mode. + * Fix local-echo in configuration file + * Clean up includes + * Force socket write operation to ignore any signals + * Man page cleanup + +------------------------------------------------------------------- Old: ---- tio-3.2.tar.xz New: ---- tio-3.3.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ tio.spec ++++++ --- /var/tmp/diff_new_pack.wr403I/_old 2024-06-04 12:51:41.617051278 +0200 +++ /var/tmp/diff_new_pack.wr403I/_new 2024-06-04 12:51:41.621051424 +0200 @@ -17,7 +17,7 @@ Name: tio -Version: 3.2 +Version: 3.3 Release: 0 Summary: Simple TTY terminal I/O application License: GPL-2.0-or-later ++++++ tio-3.2.tar.xz -> tio-3.3.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tio-3.2/.github/workflows/codeql.yml new/tio-3.3/.github/workflows/codeql.yml --- old/tio-3.2/.github/workflows/codeql.yml 2024-05-08 13:05:47.000000000 +0200 +++ new/tio-3.3/.github/workflows/codeql.yml 2024-05-15 08:35:45.000000000 +0200 @@ -12,8 +12,8 @@ name: "CodeQL" on: - # push: - # branches: [ "main", "master" ] + push: + branches: [ "main", "master" ] schedule: - cron: '0 0 * * *' pull_request: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tio-3.2/.github/workflows/macos.yml new/tio-3.3/.github/workflows/macos.yml --- old/tio-3.2/.github/workflows/macos.yml 2024-05-08 13:05:47.000000000 +0200 +++ new/tio-3.3/.github/workflows/macos.yml 2024-05-15 08:35:45.000000000 +0200 @@ -1,4 +1,4 @@ -name: macOS build +name: MacOS build on: push: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tio-3.2/NEWS new/tio-3.3/NEWS --- old/tio-3.2/NEWS 2024-05-08 13:05:47.000000000 +0200 +++ new/tio-3.3/NEWS 2024-05-15 08:35:45.000000000 +0200 @@ -1,5 +1,21 @@ -=== tio v3.2 === +=== tio v3.3 === + + + +Changes since tio v3.2: + + * Force destructive backspace when using local echo + + Only takes effect in normal output mode. + + * Fix local-echo in configuration file + + * Clean up includes + + * Force socket write operation to ignore any signals + + * Man page cleanup diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tio-3.2/README.md new/tio-3.3/README.md --- old/tio-3.2/README.md 2024-05-08 13:05:47.000000000 +0200 +++ new/tio-3.3/README.md 2024-05-15 08:35:45.000000000 +0200 @@ -73,6 +73,7 @@ * Configuration file support * Support for configuration profiles * Activate configuration profiles by name or pattern + * Redirect I/O of shell command to serial device * Redirect I/O to UNIX socket or IPv4/v6 network socket * Useful for scripting or TTY sharing * Pipe input and/or output @@ -88,7 +89,7 @@ * Send files via x/y-modem protocol * Search for serial devices * Man page documentation - * Plays nicely with [tmux](https://tmux.github.io) + * Plays nicely with [tmux](https://tmux.github.io) and similar terminal multiplexers ## 3. Usage diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tio-3.2/man/tio.1.in new/tio-3.3/man/tio.1.in --- old/tio-3.2/man/tio.1.in 2024-05-08 13:05:47.000000000 +0200 +++ new/tio-3.3/man/tio.1.in 2024-05-15 08:35:45.000000000 +0200 @@ -624,8 +624,7 @@ $ tio -b 115200 -c 11 /dev/serial/by-id/usb-FTDI_TTL232R-3V3_FTGQVXBL-if00-port0 .TP -A configuration profile can also be activated by its pattern which supports -regular expressions: +A configuration profile can also be activated by its pattern which supports regular expressions: .RS .nf @@ -649,8 +648,7 @@ $ tio -b 115200 /dev/ttyUSB12 .TP -It is also possible to combine use of configuration profile and command-line -options. For example: +It is also possible to combine use of configuration profile and command-line options. For example: $ tio -l -t usb12 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tio-3.2/man/tio.1.txt new/tio-3.3/man/tio.1.txt --- old/tio-3.2/man/tio.1.txt 2024-05-08 13:05:47.000000000 +0200 +++ new/tio-3.3/man/tio.1.txt 2024-05-15 08:35:45.000000000 +0200 @@ -276,6 +276,10 @@ Default value is "always". + --exec <command> + + Execute shell command with I/O redirected to device + -v, --version Display program version. @@ -468,6 +472,8 @@ script-run Run script on connect + exec Execute shell command with I/O redirected to device + CONFIGURATION FILE EXAMPLES To change the default configuration simply set options like so: @@ -494,8 +500,7 @@ $ tio -b 115200 -c 11 /dev/serial/by-id/usb-FTDI_TTL232R-3V3_FTGQVXBL-if00-port0 - A configuration profile can also be activated by its pattern which supports - regular expressions: + A configuration profile can also be activated by its pattern which supports regular expressions: [usb-devices] pattern = ^usb([0-9]*) @@ -510,8 +515,7 @@ $ tio -b 115200 /dev/ttyUSB12 - It is also possible to combine use of configuration profile and command-line - options. For example: + It is also possible to combine use of configuration profile and command-line options. For example: $ tio -l -t usb12 @@ -553,7 +557,7 @@ send -i $uart "ls -la\n" expect -i $uart "prompt> " - It is also possible to use the expect/send script functionality to e.g. automate logins: + It is also possible to use tio's own simpler expect/send script functionality to e.g. automate logins: $ tio --script 'expect("login: "); send("root\n"); expect("Password: "); send("root\n")' /dev/ttyUSB0 @@ -585,14 +589,10 @@ $ tio --script "set{DTR=high,RTS=low}; msleep(100); set{RTS=toggle}" --script-run once /dev/ttyUSB0 - Automatically log in to connected OS: - - $ tio --script "expect('password:'); send('my_password\n')" /dev/ttyUSB0 - WEBSITE Visit https://tio.github.io AUTHOR Maintained by Martin Lund <martin.lund@keep-it-simple.com>. -tio 3.1 2024-05-03 tio(1) +tio 3.3 2024-05-15 tio(1) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tio-3.2/meson.build new/tio-3.3/meson.build --- old/tio-3.2/meson.build 2024-05-08 13:05:47.000000000 +0200 +++ new/tio-3.3/meson.build 2024-05-15 08:35:45.000000000 +0200 @@ -1,12 +1,12 @@ project('tio', 'c', - version : '3.2', + version : '3.3', license : [ 'GPL-2'], meson_version : '>= 0.53.2', default_options : [ 'warning_level=2', 'buildtype=release', 'c_std=gnu99' ] ) # The tag date of the project_version(), update when the version bumps. -version_date = '2024-05-08' +version_date = '2024-05-15' # Test for dynamic baudrate configuration interface compiler = meson.get_compiler('c') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tio-3.2/src/alert.c new/tio-3.3/src/alert.c --- old/tio-3.2/src/alert.c 2024-05-08 13:05:47.000000000 +0200 +++ new/tio-3.3/src/alert.c 2024-05-15 08:35:45.000000000 +0200 @@ -19,15 +19,10 @@ * 02110-1301, USA. */ -#include "alert.h" -#include "config.h" #include <stdio.h> -#include <stdlib.h> #include <unistd.h> -#include <string.h> -#include "error.h" -#include "print.h" #include "options.h" +#include "alert.h" void blink_background(void) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tio-3.2/src/configfile.c new/tio-3.3/src/configfile.c --- old/tio-3.2/src/configfile.c 2024-05-08 13:05:47.000000000 +0200 +++ new/tio-3.3/src/configfile.c 2024-05-15 08:35:45.000000000 +0200 @@ -21,31 +21,18 @@ */ #define _GNU_SOURCE - -#include "config.h" -#include <sys/types.h> -#include <sys/stat.h> -#include <string.h> -#include <stdlib.h> -#include <stdio.h> #include <stdbool.h> -#include <errno.h> -#include <getopt.h> -#include <termios.h> -#include <assert.h> -#include <limits.h> +#include <stdlib.h> #include <unistd.h> +#include <string.h> +#include <assert.h> +#include <errno.h> #include <regex.h> #include <glib.h> -#include "options.h" #include "configfile.h" -#include "misc.h" -#include "options.h" -#include "error.h" #include "print.h" #include "rs485.h" -#include "timestamp.h" -#include "alert.h" +#include "misc.h" #define CONFIG_GROUP_NAME_DEFAULT "default" @@ -196,7 +183,7 @@ config_get_string(key_file, group, "exclude-drivers", &option.exclude_devices, NULL); config_get_string(key_file, group, "exclude-tids", &option.exclude_devices, NULL); config_get_bool(key_file, group, "no-reconnect", &option.no_reconnect); - config_get_bool(key_file, group, "local-echo", &option.no_reconnect); + config_get_bool(key_file, group, "local-echo", &option.local_echo); config_get_string(key_file, group, "input-mode", &string, "normal", "hex", "line", NULL); if (string != NULL) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tio-3.2/src/error.c new/tio-3.3/src/error.c --- old/tio-3.2/src/error.c 2024-05-08 13:05:47.000000000 +0200 +++ new/tio-3.3/src/error.c 2024-05-15 08:35:45.000000000 +0200 @@ -21,17 +21,8 @@ #define __STDC_WANT_LIB_EXT2__ 1 // To access vasprintf -#include "config.h" #include <stdio.h> -#include <stdlib.h> -#include <stdarg.h> -#include <stdbool.h> -#include <string.h> -#include <errno.h> -#include "options.h" #include "print.h" -#include "error.h" -#include "timestamp.h" static char error[2][1000]; static bool in_session = false; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tio-3.2/src/log.c new/tio-3.3/src/log.c --- old/tio-3.2/src/log.c 2024-05-08 13:05:47.000000000 +0200 +++ new/tio-3.3/src/log.c 2024-05-15 08:35:45.000000000 +0200 @@ -21,18 +21,10 @@ #define __STDC_WANT_LIB_EXT2__ 1 // To access vasprintf -#include "config.h" -#include <stdio.h> -#include <stdlib.h> -#include <stdarg.h> -#include <string.h> -#include <errno.h> -#include <time.h> #include <sys/time.h> #include <libgen.h> -#include "options.h" +#include <errno.h> #include "print.h" -#include "error.h" #include "fs.h" #define IS_ESC_CSI_INTERMEDIATE_CHAR(c) ((c >= 0x20) && (c <= 0x3F)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tio-3.2/src/main.c new/tio-3.3/src/main.c --- old/tio-3.2/src/main.c 2024-05-08 13:05:47.000000000 +0200 +++ new/tio-3.3/src/main.c 2024-05-15 08:35:45.000000000 +0200 @@ -19,10 +19,10 @@ * 02110-1301, USA. */ -#include "config.h" #include <stdio.h> #include <stdlib.h> #include <unistd.h> +#include "config.h" #include "options.h" #include "configfile.h" #include "tty.h" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tio-3.2/src/misc.c new/tio-3.3/src/misc.c --- old/tio-3.2/src/misc.c 2024-05-08 13:05:47.000000000 +0200 +++ new/tio-3.3/src/misc.c 2024-05-15 08:35:45.000000000 +0200 @@ -20,25 +20,14 @@ */ #define _GNU_SOURCE // For FNM_EXTMATCH -#include "config.h" -#include <ctype.h> -#include <dirent.h> -#include <regex.h> -#include <stdarg.h> -#include <stdio.h> -#include <stdlib.h> #include <unistd.h> #include <string.h> -#include <sys/stat.h> -#include <time.h> -#include <errno.h> #include <sys/poll.h> #include <sys/wait.h> -#include <termios.h> #include <fnmatch.h> -#include "error.h" +#include <regex.h> +#include <errno.h> #include "print.h" -#include "options.h" void delay(long ms) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tio-3.2/src/options.c new/tio-3.3/src/options.c --- old/tio-3.2/src/options.c 2024-05-08 13:05:47.000000000 +0200 +++ new/tio-3.3/src/options.c 2024-05-15 08:35:45.000000000 +0200 @@ -19,29 +19,15 @@ * 02110-1301, USA. */ -#include "config.h" #include <assert.h> #include <regex.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <string.h> -#include <stdlib.h> -#include <stdio.h> -#include <stdbool.h> -#include <errno.h> #include <getopt.h> -#include <termios.h> -#include <limits.h> -#include "options.h" -#include "error.h" +#include <errno.h> +#include "config.h" #include "misc.h" #include "print.h" -#include "tty.h" #include "rs485.h" -#include "timestamp.h" -#include "alert.h" #include "log.h" -#include "script.h" #include "configfile.h" #define HEX_N_VALUE_MAX 4096 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tio-3.2/src/options.h new/tio-3.3/src/options.h --- old/tio-3.2/src/options.h 2024-05-08 13:05:47.000000000 +0200 +++ new/tio-3.3/src/options.h 2024-05-15 08:35:45.000000000 +0200 @@ -23,9 +23,6 @@ #include <stdint.h> #include <stdbool.h> -#include <limits.h> -#include <termios.h> -#include <sys/param.h> #include "script.h" #include "timestamp.h" #include "alert.h" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tio-3.2/src/print.c new/tio-3.3/src/print.c --- old/tio-3.2/src/print.c 2024-05-08 13:05:47.000000000 +0200 +++ new/tio-3.3/src/print.c 2024-05-15 08:35:45.000000000 +0200 @@ -19,11 +19,6 @@ * 02110-1301, USA. */ -#include <stdio.h> -#include <stdlib.h> -#include <stdbool.h> -#include <string.h> -#include "options.h" #include "print.h" bool print_tainted = false; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tio-3.2/src/print.h new/tio-3.3/src/print.h --- old/tio-3.2/src/print.h 2024-05-08 13:05:47.000000000 +0200 +++ new/tio-3.3/src/print.h 2024-05-15 08:35:45.000000000 +0200 @@ -23,7 +23,6 @@ #include <stdio.h> #include <stdbool.h> -#include "misc.h" #include "error.h" #include "options.h" #include "timestamp.h" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tio-3.2/src/rs485.c new/tio-3.3/src/rs485.c --- old/tio-3.2/src/rs485.c 2024-05-08 13:05:47.000000000 +0200 +++ new/tio-3.3/src/rs485.c 2024-05-15 08:35:45.000000000 +0200 @@ -19,14 +19,13 @@ * 02110-1301, USA. */ -#include <stdlib.h> -#include <string.h> +#include <stdio.h> #include <errno.h> +#include <string.h> #include <sys/ioctl.h> -#include <stdbool.h> #include "options.h" #include "print.h" -#include "error.h" +#include "misc.h" #ifdef HAVE_RS485 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tio-3.2/src/socket.c new/tio-3.3/src/socket.c --- old/tio-3.2/src/socket.c 2024-05-08 13:05:47.000000000 +0200 +++ new/tio-3.3/src/socket.c 2024-05-15 08:35:45.000000000 +0200 @@ -263,7 +263,7 @@ { if (clientfds[i] != -1) { - if (write(clientfds[i], &input_char, 1) <= 0) + if (send(clientfds[i], &input_char, 1, MSG_NOSIGNAL) <= 0) { tio_error_printf_silent("Failed to write to socket (%s)", strerror(errno)); close(clientfds[i]); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tio-3.2/src/timestamp.c new/tio-3.3/src/timestamp.c --- old/tio-3.2/src/timestamp.c 2024-05-08 13:05:47.000000000 +0200 +++ new/tio-3.3/src/timestamp.c 2024-05-15 08:35:45.000000000 +0200 @@ -22,8 +22,6 @@ #include "config.h" #include <stdio.h> #include <stdlib.h> -#include <unistd.h> -#include <string.h> #include <sys/time.h> #include <time.h> #include "error.h" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tio-3.2/src/tty.c new/tio-3.3/src/tty.c --- old/tio-3.2/src/tty.c 2024-05-08 13:05:47.000000000 +0200 +++ new/tio-3.3/src/tty.c 2024-05-15 08:35:45.000000000 +0200 @@ -188,6 +188,12 @@ print(c); + if ((option.output_mode == OUTPUT_MODE_NORMAL) && (c == 127)) + { + // Force destructive backspace + printf("\b \b"); + } + if (option.log) { log_putc(c); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tio-3.2/src/xymodem.c new/tio-3.3/src/xymodem.c --- old/tio-3.2/src/xymodem.c 2024-05-08 13:05:47.000000000 +0200 +++ new/tio-3.3/src/xymodem.c 2024-05-15 08:35:45.000000000 +0200 @@ -7,20 +7,15 @@ * */ -#include <stdio.h> -#include <stdlib.h> -#include <stdint.h> -#include <string.h> +#include <fcntl.h> #include <errno.h> #include <unistd.h> -#include <fcntl.h> -#include <sys/types.h> +#include <termios.h> #include <sys/stat.h> #include <sys/mman.h> -#include <sys/poll.h> -#include <termios.h> #include "xymodem.h" #include "print.h" +#include "misc.h" #define SOH 0x01 #define STX 0x02
participants (1)
-
Source-Sync