Skip to content

Commit d42fa25

Browse files
committed
src/sage/ext_data/gap/sage.g: disable color prompt
This is currently done in gap_reset_workspace(), but I think it's less surprising to find the GAP initialization in the GAP initialization file. Here we add it to sage.g (for the pexpect interface) so that it can later be removed from gap_reset_workspace(). It has already been added to sage.gaprc (for the library interface) in an earlier commit.
1 parent 23c02f2 commit d42fa25

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sage/ext_data/gap/sage.g

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
# Sage support utilities to read into the GAP session.
33
#
44

5+
# Disable color in the prompt, it interferes with parsing.
6+
ColorPrompt(false);
7+
58
# Prevent loading the xgap package; we use the -p flag to GAP in order to
69
# communicate with it via the pexpect interface; this is normally used by
710
# for an xgap window to communicate with GAP, so unfortunately setting this

0 commit comments

Comments
 (0)