[fork] sfeed (atom feed) reader
Log | Files | Refs | README | LICENSE

commit 4bfa24744f428077ca1fef9bffdc070c15799fbb
parent 5dc1978e1df1b7b83f2fc1d8e831fdd884b9eac2
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sun,  2 Aug 2020 13:06:47 +0200

README: use the existing plumb function instead of system()...

... the existing plumb function forks and handles signals such as SIGWINCH
instead of calling the shell and not handling these signals which made the
sending of SIGHUP useless.

To reproduce: have a sync script and while it runs resize the terminal,
afterwards the terminal is not resized (SIGWINCH) and requires a manual refresh
(^L) or another resize.

MREADME | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/README b/README @@ -136,15 +136,17 @@ reload the feeds by sending the signal SIGHUP. In the input handling code you can then add a case: case 'M': - system("~/.sfeed/markallread.sh >/dev/null 2>/dev/null"); + plumb("markallread.sh", NULL); break; or case 'S': - system("~/.sfeed/sync.sh >/dev/null 2>/dev/null"); + plumb("syncnews.sh", NULL); break; +The specified script should be in $PATH or an absolute path. + Example of a `markallread.sh` shellscript to mark all urls as read: #!/bin/sh