-
-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -880,6 +880,7 @@ module internal ANSIOutputWriter = | |
|
||
let mutable internal colours = None | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
AnthonyLloyd
Contributor
|
||
let internal setColourLevel c = if colours.IsNone then colours <- Some c | ||
let internal getColour() = Option.defaultValue Colour0 colours | ||
This comment has been minimized.
Sorry, something went wrong.
haf
Owner
|
||
|
||
let colourReset = "\u001b[0m" | ||
|
||
|
2 comments
on commit 9a6e19c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I veto this change; I don't want 0 colours by default, please revert this commit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is for #330 which is a use case where not running through runTests but just using Expect. I'm really sure of why anyone would want this (script??) and so put it at the simplest default.
I don't particularly like mutable variables; they make the code-base hard to reason about. I introduced DVar which at least lets you react to these mutable variables changing, but preferrably, we have a default config.