aboutsummaryrefslogtreecommitdiff
path: root/auto.def
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2011-09-13 10:37:33 +1000
committerSteve Bennett <steveb@workware.net.au>2011-09-14 09:03:30 +1000
commit82961da831f0018c6ab177a46bd72daad32cd387 (patch)
tree151eb9d961880adea9e752595d060482799612c8 /auto.def
parentb78082fffb3df0a64b33def5476b59b914f97de9 (diff)
downloadjimtcl-82961da831f0018c6ab177a46bd72daad32cd387.zip
jimtcl-82961da831f0018c6ab177a46bd72daad32cd387.tar.gz
jimtcl-82961da831f0018c6ab177a46bd72daad32cd387.tar.bz2
Linenoise support for win32 console
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 f796d81..6f2fb05 100644
--- a/auto.def
+++ b/auto.def
@@ -98,6 +98,7 @@ switch -glob -- $host_os {
mingw* {
# We provide our own implementation of dlopen for mingw32
define-feature dlopen-compat
+ define-feature winconsole
define TCL_PLATFORM_OS $host_os
define TCL_PLATFORM_PLATFORM windows
define TCL_PLATFORM_PATH_SEPARATOR {;}
@@ -175,7 +176,7 @@ if {[opt-bool ipv6 full]} {
define JIM_IPV6
}
if {[opt-bool lineedit full]} {
- if {[cc-check-includes termios.h] && [cc-check-functions isatty]} {
+ if {([cc-check-includes termios.h] && [cc-check-functions isatty]) || [have-feature winconsole]} {
msg-result "Enabling line editing"
define USE_LINENOISE
lappend extra_objs linenoise.o