Commit Graph

10 Commits

Author SHA1 Message Date
Hiltjo Posthuma 78e5435937 sfeed_curses: close stdin for spawning a plumb program in non-interactive mode
This is only for plumbing in non-interactive mode in forkexec(), but not piping
content.

Probably obvious what the descriptors are, but also add a few comments to dup2
of the file descriptors (stdin, stdout, stderr).

To reproduce a behaviour:

	Plumb script:

	#!/bin/sh
	dmenu

	Then launch it:

	SFEED_PLUMB_INTERACTIVE=0 SFEED_PLUMB=thescript sfeed_curses ~/.sfeed/feeds/*

The program now waits on input while in non-interactive mode and only seems to
hang.

After:

The program starts but just has no input passed to it.
2022-05-05 10:11:05 +02:00
Hiltjo Posthuma f0ca847fca sfeed_curses.1: more details about signals and (non-)interactive programs
- SIGINT: reword, canceling the line editor is the exception.
- Document the order of signal handling.
- Document interactive and non-interactive behaviour in a separate section and
  in more detail.
  Remove repetition for each *_INTERACTIVE environment variable.
- Document SIGINT and SIGTERM exit status.
- Typo: "statusbar" -> "status bar".
- Reword a few sentences.

With additional changes and feedback from adc, thanks!
2022-05-04 20:43:59 +02:00
Hiltjo Posthuma c3f5dcec10 sfeed_curses.1: fix typo: automaticly -> automatically
Noticed by the Debian scanner for typos (typo-in-manual-page):
https://mentors.debian.net/package/sfeed/
2022-04-10 18:28:33 +02:00
Hiltjo Posthuma d14aac682c sfeed_curses.1: clarify the 'R' keybind or SIGHUP will reload the url file also
... if it is set of course.
2022-02-24 00:49:18 +01:00
Hiltjo Posthuma 4e0df8dcb8 sfeed_curses.1: tiny rewording from previous commit
There is only one enclosure supported.
2022-02-05 13:16:19 +01:00
Anders Damsgaard e9f70bdc2b sfeed_curses.1: document @ flag 2022-02-04 20:18:06 +01:00
Hiltjo Posthuma 902e9710b1 sfeed_curses.1: fix stdin -> tty
Because the tty (/dev/tty). is reopened when reading feed data from stdin.
2022-02-01 20:36:41 +01:00
Hiltjo Posthuma f726178a4c add feature to go to the next bold row and previous bold row with J and K
This replaces the current J and K keybind, which was rarely useful.

Thanks to IanJ for the suggestion and feedback!
2022-01-22 12:15:57 +01:00
Hiltjo Posthuma 03bc1ec04b sfeed_curses.1: clarify an exception with SIGINT
SIGTERM is the best way to quit the program, because SIGINT can cancel only the
line editor prompt when using it.
2022-01-19 19:54:16 +01:00
Hiltjo Posthuma 3cb7df56e0 import sfeed_curses
Import sfeed_curses into sfeed.
The files are based of the commit 8e151ce48b503ad0ff0e24cb1be3bc93d6fbd895
2021-11-26 12:10:05 +01:00