Skip to content

Commit 260445a

Browse files
committed
Use True/False for bool options...
Now that Mathics will soon be fixed.
1 parent 2759546 commit 260445a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

mathicsscript/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,10 @@ def main(
220220
# Then, it can be changed by the settings file (in WL)
221221
# and overwritten by the command line parameter.
222222
definitions.set_ownvalue(
223-
"Settings`$ShowFullFormInput", from_python(1 if full_form else 0)
223+
"Settings`$ShowFullFormInput", from_python(True if full_form else False)
224224
)
225225
definitions.set_ownvalue(
226-
"Settings`$PygmentsShowTokens", from_python(1 if pygments_tokens else 0)
226+
"Settings`$PygmentsShowTokens", from_python(True if pygments_tokens else False)
227227
)
228228

229229
shell = TerminalShell(definitions, style, readline, completion, unicode)

mathicsscript/settings.m

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212
Note this is for input entered, not the output of the evaluated result.
1313
"
1414

15-
Settings`$ShowFullFormInput = 0
15+
Settings`$ShowFullFormInput = False
1616
Settings`$PygmentsStyle::usage = "This sets the Pygments style used to colorize output. The value should be a string.
1717
1818
The default value changes background depending on whether the terminal has a light or dark background. You can also set the color style used on the command with the ``--style`` option, or look at the variable ```Settings`PygmentsStylesAvailable```. Or it can be set in the settings.m file."
1919

20-
Settings`$PygmentsShowTokens::usage = "Setting this 1 will show Pygments tokenization of the output."
20+
Settings`$PygmentsShowTokens::usage = "Setting this True will show Pygments tokenization of the output."
21+
22+
Settings`$PygmentsShowTokens = False

0 commit comments

Comments
 (0)