From 51bd183f064d0c0ea5e0184d9f6b6b62e5c01e50 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 3 Aug 2025 15:41:28 +0300 Subject: added --quiet, --stdin and --stdout for easier integration into UNIX pipelines * In principle --stdin and --stdout could have been done in pure TECO code using the <^T> command. Having built-in command-line arguments however has several advantages: * Significantly faster than reading byte-wise with ^T. * Performs EOL normalization unless specifying --8bit of course. * Significantly shortens command-lines. `sciteco -qio` and `sciteco -qi` can be real replacements for sed and awk. * You can even place SciTECO into the middle of a pipeline while editing interactively: foo | sciteco -qio --no-profile | bar Unfortunately, this will not currently work when munging the profile as command-line parameters are also transmitted via the unnamed buffer. This should be changed to use special Q-registers (FIXME). * --quiet can help to improve the test suite (TODO). Should probably be the default in TE_CHECK(). * --stdin and --stdout allow to simplify many SciTECO scripts, avoiding temporary files, especially for womenpage generation (TODO). * For processing potentially infinite streams, you will still have to read using ^T. --- README | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'README') diff --git a/README b/README index 12b17e4..58ede3b 100644 --- a/README +++ b/README @@ -100,6 +100,7 @@ Features to be used interactively on system terminals, can be integrated into UNIX pipelines and can be extended with external command-line tools (see `EC` command). + It can easily replace tools like *sed* and *awk*. * Themeability and consistency: Color settings (or schemes) are applied consistenly across all supported platforms. Gtk+ builds allow further customization using CSS. The user interface is kept minimalistic and is consistent in spirit across the @@ -152,7 +153,7 @@ Community if you can (or write an E-Mail to the author). * You can also use [Github Discussions](https://github.com/rhaberkorn/sciteco/discussions) for asking questions. -* We are also present in the [alt.lang.teco](https://newsgrouper.org.uk/alt.lang.teco) Usenet group, +* We are also present in the [alt.lang.teco](https://newsgrouper.org/alt.lang.teco) Usenet group, but it is not restricted to SciTECO. Additional Documentation -- cgit v1.2.3