Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/test.gi
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,8 @@ end);
DeclareGlobalName("TextAttr"); # from GAPDoc
DeclareGlobalName("DefaultReportDiffColors"); # initialized in Test() or by the user
BindGlobal("DefaultReportDiff", function(inp, expout, found, fnam, line, time)
if UserPreference("UseColorsInTerminal") = true then
if UserPreference("UseColorsInTerminal") = true
and IsBound( GAPInfo.PackagesLoaded.gapdoc ) then
Print(DefaultReportDiffColors.message);
Print("########> Diff in ");
if IsStream(fnam) then
Expand Down Expand Up @@ -646,7 +647,8 @@ InstallGlobalFunction("Test", function(arg)
else
nopts := rec();
fi;
if not IsBound(DefaultReportDiffColors) then
if not IsBound(DefaultReportDiffColors)
and IsBound( GAPInfo.PackagesLoaded.gapdoc ) then
BindGlobal("DefaultReportDiffColors", rec(
message := TextAttr.4, # blue text
input := "",
Expand Down
Loading