aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-06-06 11:46:58 +0000
committerdos-reis <gdr@axiomatics.org>2011-06-06 11:46:58 +0000
commita4f2d884469f6d613cf1597e3dd1c91b39ca6ace (patch)
treec7e8cac24a9b20ad7ea5efdbf15da1966a960834 /src
parent08694a36b0b686351c8a2dbd2746bc78ea0dc221 (diff)
downloadopen-axiom-a4f2d884469f6d613cf1597e3dd1c91b39ca6ace.tar.gz
* lisp/core.lisp.in (%escapeSequenceAverseHost?): New.
* interp/msgdb.boot (brightPrint0): Use it.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/interp/msgdb.boot4
-rw-r--r--src/lisp/core.lisp.in11
3 files changed, 16 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 9f2b546e..99a1cb6a 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2011-06-06 Gabriel Dos Reis <gdr@cs.tamu.edu>
+
+ * lisp/core.lisp.in (%escapeSequenceAverseHost?): New.
+ * interp/msgdb.boot (brightPrint0): Use it.
+
2011-06-05 Gabriel Dos Reis <gdr@ce.tamu.edu>
* utils/command.cc (default_driver): New.
diff --git a/src/interp/msgdb.boot b/src/interp/msgdb.boot
index c52bbf60..61d4dcb3 100644
--- a/src/interp/msgdb.boot
+++ b/src/interp/msgdb.boot
@@ -604,13 +604,13 @@ brightPrint0(x,out == $OutputStream) ==
x = '"%b" =>
-- FIXME: this kludge is GCL-specific. Find way to support
-- highlighting on all supported Lisp.
- not IS_-CONSOLE out or %hasFeature KEYWORD::WIN32
+ not IS_-CONSOLE out or %escapeSequenceAverseHost?()
or stdStreamIsTerminal(1) = 0 => sayString('" ",out)
not $highlightAllowed => sayString('" ",out)
sayString($highlightFontOn,out)
k := blankIndicator x => BLANKS(k,out)
x = '"%d" =>
- not IS_-CONSOLE out or %hasFeature KEYWORD::WIN32
+ not IS_-CONSOLE out or %escapeSequenceAverseHost?()
or stdStreamIsTerminal(1) = 0 => sayString('" ",out)
not $highlightAllowed => sayString('" ",out)
sayString($highlightFontOff,out)
diff --git a/src/lisp/core.lisp.in b/src/lisp/core.lisp.in
index 303ad074..87155ec3 100644
--- a/src/lisp/core.lisp.in
+++ b/src/lisp/core.lisp.in
@@ -145,6 +145,7 @@
"%basicSystemIsComplete"
"%algebraSystemIsComplete"
"%nothing"
+ "%escapeSequenceAverseHost?"
"$hostPlatform"
"$buildPlatform"
@@ -350,8 +351,7 @@
(defconstant |$EnableLispProfiling| @oa_enable_profiling@))
(eval-when (:compile-toplevel :load-toplevel :execute)
- (when |$EnableLispProfiling|
- (progn #+sbcl (require :sb-sprof))))
+ (progn #+sbcl (require :sb-sprof)))
;; Return true if the full OpenAxiom algebra system is completed
;; built.
@@ -421,6 +421,13 @@
(cond (|$useDynamicLink| "@SHREXT@")
(t ".@LIBEXT@")))
+;; Return true if the host is escape sequence averse. This is notably
+;; true on windows-based builds (win32 or win64)
+(defun |%escapeSequenceAverseHost?| ()
+ (or (member :win32 *features*)
+ (member :windows *features*)))
+
+
(defconstant |$EditorProgram| "@oa_editor@")
;; Token expression to indicate absence of value or bottom value.