aboutsummaryrefslogtreecommitdiff
path: root/auto.def
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2011-07-13 16:44:29 +1000
committerSteve Bennett <steveb@workware.net.au>2011-07-18 11:33:44 +1000
commit2992a5502706f44b840dd8ef886647dd2f06efe4 (patch)
tree03f5d84198e8dcae83a27604de0b34c268fcae53 /auto.def
parent9c0d53835cae3b23e55ac008ce0bad626af3145a (diff)
downloadjimtcl-2992a5502706f44b840dd8ef886647dd2f06efe4.zip
jimtcl-2992a5502706f44b840dd8ef886647dd2f06efe4.tar.gz
jimtcl-2992a5502706f44b840dd8ef886647dd2f06efe4.tar.bz2
Don't load and save history if not on a tty
If jimsh is run in interactive mode but without a tty, don't bother to load and save line editing history. Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'auto.def')
-rw-r--r--auto.def3
1 files changed, 2 insertions, 1 deletions
diff --git a/auto.def b/auto.def
index c1e24ef..eb2f892 100644
--- a/auto.def
+++ b/auto.def
@@ -138,10 +138,11 @@ if {[opt-bool ipv6 full]} {
msg-result "Enabling IPv6"
define JIM_IPV6
}
-if {[opt-bool lineedit full] && [cc-check-includes termios.h]} {
+if {[opt-bool lineedit full] && [cc-check-includes termios.h] && [cc-check-functions isatty]} {
msg-result "Enabling line editing"
define USE_LINENOISE
lappend extra_objs linenoise.o
+ cc-check-functions isatty
}
if {[opt-bool references]} {
msg-result "Enabling references"