summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-07-24 19:59:24 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-07-24 19:59:24 -0700
commitbc2ac36079f3d349102f665aebc41d8a69c3ee14 (patch)
tree0fd9921796417a3bdb61ce9bb5f9cafe9ba08056
parentfcbd88ca5a087bd1d477b11e3c1017d4a6b70fa2 (diff)
downloadtxr-bc2ac36079f3d349102f665aebc41d8a69c3ee14.tar.gz
txr-bc2ac36079f3d349102f665aebc41d8a69c3ee14.tar.bz2
txr-bc2ac36079f3d349102f665aebc41d8a69c3ee14.zip
Different banner text for plain mode.
* txr.c (banner): In plain mode, indicate that the mode is in effect. Do not suggest any Ctrl-X commands, since they are not recognized.
-rw-r--r--txr.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/txr.c b/txr.c
index 43471029..d0fbcfaa 100644
--- a/txr.c
+++ b/txr.c
@@ -177,8 +177,12 @@ static void help(void)
static void banner(void)
{
format(std_output,
- lit("This is the TXR Lisp interactive listener of TXR ~a.\n"
- "Quit with :quit or Ctrl-D on empty line. Ctrl-X ? for cheatsheet.\n"),
+ if3(opt_noninteractive,
+ lit("This is the TXR Lisp plain mode listener of TXR ~a.\n"
+ "Quit wth :quit or Ctrl-D on an empty line.\n"),
+ lit("This is the TXR Lisp interactive listener of TXR ~a.\n"
+ "Quit with :quit or Ctrl-D on an empty line. "
+ "Ctrl-X ? for cheatsheet.\n")),
static_str(version), nao);
}
#else