From 39f60dcfbd49258cc52a56470351dbd391d72bd4 Mon Sep 17 00:00:00 2001 From: rocky Date: Sun, 11 Aug 2024 21:27:18 -0400 Subject: [PATCH] Work around a bug giving Set:setraw error --- mathicsscript/autoload/settings.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mathicsscript/autoload/settings.m b/mathicsscript/autoload/settings.m index d265f4b..1e29d6b 100644 --- a/mathicsscript/autoload/settings.m +++ b/mathicsscript/autoload/settings.m @@ -13,6 +13,12 @@ " Settings`$ShowFullFormInput = False + +(* This is a workarund for a bug in mathicsscript of mathics-core. + Remove this and we get error: + Set::setraw: Cannot assign to raw object colorful. *) +Settings`$PygmentsStyle = False + Settings`$PygmentsStyle::usage = "This variable sets the Pygments style used to colorize output. The value should be a string. 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."