]> rtime.felk.cvut.cz Git - sojka/sterm.git/log
sojka/sterm.git
22 months agodefault.nix: include completion master
Karel Kočí [Thu, 9 Jun 2022 15:06:44 +0000 (17:06 +0200)]
default.nix: include completion

2 years agoAdd --help and --version command line switches
Michal Sojka [Sun, 19 Dec 2021 15:49:47 +0000 (16:49 +0100)]
Add --help and --version command line switches

2 years agonix: Add flake.nixbang
Michal Sojka [Sat, 27 Nov 2021 14:01:36 +0000 (15:01 +0100)]
nix: Add flake.nixbang

This allows using sterm on a system based on Nix Flakes. You can add
the provided overlay to nixpkgs overlays by putting:

    nixpkgs.overlays = [ sterm.overlay ];

to your NixOS configuration.nix.

3 years agoAdd README
Michal Sojka [Wed, 25 Nov 2020 08:14:37 +0000 (09:14 +0100)]
Add README

3 years agoAdd Nix expression
Michal Sojka [Tue, 13 Oct 2020 12:41:23 +0000 (14:41 +0200)]
Add Nix expression

4 years agoUpdate changelog for 20200306 release 20200306
Michal Sojka [Fri, 6 Mar 2020 17:26:14 +0000 (18:26 +0100)]
Update changelog for 20200306 release

4 years agoFew fixes in the man page
Michal Sojka [Sun, 5 Jan 2020 21:30:50 +0000 (22:30 +0100)]
Few fixes in the man page

4 years agoTeach shell completions about the -t option
Michal Sojka [Sat, 4 Jan 2020 16:56:05 +0000 (17:56 +0100)]
Teach shell completions about the -t option

4 years agofixup! Fix usage text about the -n option
Michal Sojka [Sat, 4 Jan 2020 16:50:22 +0000 (17:50 +0100)]
fixup! Fix usage text about the -n option

4 years agoIgnore CPR ANSI control sequence in exit_on_escapeseq()
Michal Sojka [Sat, 4 Jan 2020 16:43:02 +0000 (17:43 +0100)]
Ignore CPR ANSI control sequence in exit_on_escapeseq()

In some cases (e.g. Debian's initramfs) the device sends DSR (Device
Status Report) ANSI control sequences as a response to pressing Enter.
Some terminals (e.g. gnome terminal) respond to this by CPR (Cursor
Position Response) sequence, which appears as typed from keyboard. See
https://en.wikipedia.org/wiki/ANSI_escape_code#Terminal_output_sequences.

This complicates exiting sterm, because the exit escape sequence \n~.
must by typed very quickly (actually copy&pasted) so that CPR doesn't
appear between \n and ~..

This commit causes the CPR sequence to be ignored when detecting exit
sequence.

Fixes #2.

4 years agoAllow enforcing minimum delay between transmitted characters
Michal Sojka [Sat, 4 Jan 2020 15:32:50 +0000 (16:32 +0100)]
Allow enforcing minimum delay between transmitted characters

4 years agoMinor refactoring
Michal Sojka [Sat, 4 Jan 2020 13:57:02 +0000 (14:57 +0100)]
Minor refactoring

No functional changes, except fixing order of arguments in "Not all
data written to stdout" message.

This is to make the next commit smaller and easier to review.

4 years agoFix usage text about the -n option
Michal Sojka [Wed, 6 Nov 2019 08:42:44 +0000 (09:42 +0100)]
Fix usage text about the -n option

Interestingly, the manual page has this correct.

4 years agoUpdate changelog for 20191105 release 20191105
Michal Sojka [Tue, 5 Nov 2019 22:33:58 +0000 (23:33 +0100)]
Update changelog for 20191105 release

4 years agoextend zsh and bash completion by newly added baudrates
Jan Kaisrlik [Mon, 4 Nov 2019 15:42:02 +0000 (16:42 +0100)]
extend zsh and bash completion by newly added baudrates

patch df62ab77f582080d8ea648da5827b32d8d9e34a9 extends support of
baudrates up to 4Mbps.

4 years agoSupport baudrates up to 4 Mbps
Michal Sojka [Sat, 2 Nov 2019 22:24:46 +0000 (23:24 +0100)]
Support baudrates up to 4 Mbps

These are supported by glibc since 1999. If other C libraries have
problem with those, we should add ifdefs.

Thanks to ohemming@gmail.com for letting me know that his Rock64 needs
1.5 Mbps baudrate.

4 years agoUpdate changelog for 20190912 release 20190912
Michal Sojka [Thu, 12 Sep 2019 19:50:23 +0000 (21:50 +0200)]
Update changelog for 20190912 release

4 years agoAdd release procedure to Makefile
Michal Sojka [Thu, 12 Sep 2019 19:28:22 +0000 (21:28 +0200)]
Add release procedure to Makefile

4 years agoHandle hang-up event on stdin
Michal Sojka [Thu, 12 Sep 2019 19:01:07 +0000 (21:01 +0200)]
Handle hang-up event on stdin

When sterm is run with pipe as stdin rather than terminal, as is the
case, for example, with the following command:

     ssh somewhere sterm /dev/ttyS0

closing the pipe (e.g. killing ssh) does not send SIGHUP signal, but
POLLHUP event is reported by poll(). When this happened, sterm ended
up in an infinite loop, consuming 100% CPU. Now, we handle this event
and exit.

5 years agodebian: Clean whitespace
Michal Sojka [Fri, 4 May 2018 22:12:06 +0000 (00:12 +0200)]
debian: Clean whitespace

5 years agoAdd Makefile targets for (cross)building Debian package
Michal Sojka [Fri, 4 May 2018 22:09:28 +0000 (00:09 +0200)]
Add Makefile targets for (cross)building Debian package

This is for me to not forget the needed parameters.

5 years agodebian: Do not strip binaries during install
Michal Sojka [Fri, 4 May 2018 21:55:30 +0000 (23:55 +0200)]
debian: Do not strip binaries during install

This was broken by one of the previous commits. The problem with
"install -s" is that it breaks when crossbuilding the package and it also
prevents creation of dbgsym package.

6 years agoUpdate changelog for new release 20171215
Michal Sojka [Fri, 15 Dec 2017 12:02:38 +0000 (13:02 +0100)]
Update changelog for new release

6 years agoImplement exit command in command mode
Michal Sojka [Fri, 15 Dec 2017 11:57:04 +0000 (12:57 +0100)]
Implement exit command in command mode

6 years agoAllow sending break signal
Michal Sojka [Fri, 15 Dec 2017 11:52:29 +0000 (12:52 +0100)]
Allow sending break signal

6 years agoMake liblockdev optional and use flock
Michal Sojka [Fri, 15 Dec 2017 11:51:54 +0000 (12:51 +0100)]
Make liblockdev optional and use flock

6 years agoUpdate zsh completion install path to work on Debian
Michal Sojka [Mon, 20 Nov 2017 09:50:13 +0000 (10:50 +0100)]
Update zsh completion install path to work on Debian

6 years agoAdd completions for bash and zsh
Karel Kočí [Sun, 29 Oct 2017 20:24:03 +0000 (21:24 +0100)]
Add completions for bash and zsh

6 years agoPrint more descriptive error message
Michal Sojka [Wed, 3 May 2017 22:00:10 +0000 (00:00 +0200)]
Print more descriptive error message

7 years agoFix install strip
Karel Kočí [Mon, 5 Dec 2016 06:41:40 +0000 (07:41 +0100)]
Fix install strip

Strip can be used only on executables, adding it to all install
commands causes error on some systems.

7 years agoUpdate changelog for 20170112 release 20170112
Michal Sojka [Thu, 12 Jan 2017 16:38:42 +0000 (17:38 +0100)]
Update changelog for 20170112 release

7 years agoDocument -v option (verbose)
Michal Sojka [Thu, 12 Jan 2017 16:36:46 +0000 (17:36 +0100)]
Document -v option (verbose)

7 years agoCompile with debug information and strip them during install 20160921
Michal Sojka [Wed, 21 Sep 2016 14:33:23 +0000 (16:33 +0200)]
Compile with debug information and strip them during install

Debian automatically creates debug symbol package of the binary is
compiled with debug information. If it is compiled without -g, lintian
warns about empty debug symbols.

7 years agoUpdate changelog for 20160921 release
Michal Sojka [Wed, 21 Sep 2016 14:16:21 +0000 (16:16 +0200)]
Update changelog for 20160921 release

7 years agoAdd SEE ALSO section to manual page
Michal Sojka [Wed, 21 Sep 2016 14:13:10 +0000 (16:13 +0200)]
Add SEE ALSO section to manual page

7 years agoFix man page installation path
Michal Sojka [Wed, 21 Sep 2016 13:48:19 +0000 (15:48 +0200)]
Fix man page installation path

Make pages should go to /XXX/share/man and not to /XXX/man/.

In case of Debian package, use Debian-specific mechanism to install the
man page.

7 years agoSilence warning about deprecation of _BSD_SOURCE
Michal Sojka [Wed, 21 Sep 2016 13:38:36 +0000 (15:38 +0200)]
Silence warning about deprecation of _BSD_SOURCE

Adding _DEFAULT_SOURCE and keeping _BSD_SOURCE is recommended in
feature_test_macros(7).

7 years agoSimplify Makefile to use built-in rules
Michal Sojka [Wed, 21 Sep 2016 13:18:36 +0000 (15:18 +0200)]
Simplify Makefile to use built-in rules

7 years agoFix/clarify the man page
Michal Sojka [Wed, 21 Sep 2016 13:17:12 +0000 (15:17 +0200)]
Fix/clarify the man page

7 years agoAdd manual page
Karel Kočí [Fri, 16 Sep 2016 20:23:34 +0000 (22:23 +0200)]
Add manual page

Every good program should have its manual page.

8 years agoUpdate changelog for 20151016 release 20151016
Michal Sojka [Fri, 16 Oct 2015 10:53:21 +0000 (12:53 +0200)]
Update changelog for 20151016 release

8 years agoAdd command mode
Michal Sojka [Wed, 19 Aug 2015 22:00:28 +0000 (00:00 +0200)]
Add command mode

This mode is entered before serial line begins. Currently implemented
commands are: dtr, rst and go. "dtr" and "rst" are the same as -d and -r
options, "go" ends command mode and enters serial line interaction.

This is intended for use by novaboot in this way: Novaboot connects to
the serial line to be sure that the target is not occupied. Then it
copies the images, which can take long time, and after that it sends
reset command to reset the target. Without this, the target is reset (by
-d or -r) before copying the images and after that it may be too late to
communicate with the bootloader.

8 years agoRefactor pulse to a function
Michal Sojka [Wed, 19 Aug 2015 20:43:36 +0000 (22:43 +0200)]
Refactor pulse to a function

8 years agoUpdate changelog for 20150821 release 20150821
Michal Sojka [Wed, 12 Aug 2015 10:52:38 +0000 (12:52 +0200)]
Update changelog for 20150821 release

8 years agoAllow specifying DTR/RTS pulse length
Michal Sojka [Wed, 12 Aug 2015 10:47:12 +0000 (12:47 +0200)]
Allow specifying DTR/RTS pulse length

9 years agoFix Makefile to work on Ubuntu Precise
Michal Sojka [Tue, 3 Feb 2015 14:46:21 +0000 (15:46 +0100)]
Fix Makefile to work on Ubuntu Precise

9 years agoUpdate changelog for 20150127a release 20150127a
Michal Sojka [Tue, 27 Jan 2015 10:12:23 +0000 (11:12 +0100)]
Update changelog for 20150127a release

9 years agoFix disabling of flow control
Michal Sojka [Tue, 27 Jan 2015 10:05:56 +0000 (11:05 +0100)]
Fix disabling of flow control

9 years agoUpdate changelog for 20150127 release 20150127
Michal Sojka [Tue, 27 Jan 2015 09:35:08 +0000 (10:35 +0100)]
Update changelog for 20150127 release

9 years agoAdd configuration for Debian's git-buildpackage
Michal Sojka [Tue, 27 Jan 2015 09:33:56 +0000 (10:33 +0100)]
Add configuration for Debian's git-buildpackage

9 years agoDisable flow control
Michal Sojka [Tue, 27 Jan 2015 09:29:55 +0000 (10:29 +0100)]
Disable flow control

RTS/CTS lines may be used for something else than flow control so disable
it. If it turns out that we need it for some hardware, we will add an
command line option to enable it.

9 years agoNever block when opening the port
Michal Sojka [Tue, 27 Jan 2015 09:19:22 +0000 (10:19 +0100)]
Never block when opening the port

Whether blocking happens depends on the value of CDC signal and previously
set CLOCAL settings. Since we cannot influence CLOCAL settings before
opening the port, we have to use O_NONBLOCK.

9 years agoFix escape sequence handling
Michal Sojka [Tue, 2 Dec 2014 14:35:44 +0000 (15:35 +0100)]
Fix escape sequence handling

9 years agoDebian release 20140723
Michal Sojka [Wed, 23 Jul 2014 16:50:23 +0000 (18:50 +0200)]
Debian release

9 years agoUse liblockdev to lock the tty device
Michal Sojka [Wed, 23 Jul 2014 16:49:03 +0000 (18:49 +0200)]
Use liblockdev to lock the tty device

This is simpler and it should also be compatible with systemd initiated
change of /var/lock permissions. See
http://lists.freedesktop.org/archives/systemd-devel/2011-March/001823.html

9 years agoAdd Debian packaging 20140708
Michal Sojka [Tue, 8 Jul 2014 11:15:47 +0000 (13:15 +0200)]
Add Debian packaging

9 years agoAdd simple Makefile
Michal Sojka [Tue, 8 Jul 2014 11:02:29 +0000 (13:02 +0200)]
Add simple Makefile

9 years agoMore messages in verbose mode
Michal Sojka [Tue, 8 Jul 2014 10:31:46 +0000 (12:31 +0200)]
More messages in verbose mode

9 years agoImprove documentation
Michal Sojka [Tue, 8 Jul 2014 10:14:32 +0000 (12:14 +0200)]
Improve documentation

9 years agoAdd scape sequence and an option to ignore it
Michal Sojka [Tue, 8 Jul 2014 10:14:23 +0000 (12:14 +0200)]
Add scape sequence and an option to ignore it

Ignoring is useful for transfering binary files.

9 years agosterm: Detect stale lock files
Michal Sojka [Wed, 5 Feb 2014 17:23:23 +0000 (18:23 +0100)]
sterm: Detect stale lock files

9 years agosterm: Minor updates
Michal Sojka [Tue, 4 Feb 2014 15:48:00 +0000 (16:48 +0100)]
sterm: Minor updates

9 years agoAdd simple serial line terminal
Michal Sojka [Mon, 3 Feb 2014 17:45:44 +0000 (18:45 +0100)]
Add simple serial line terminal