Ask Your Question

askbot_throwaway123's profile - activity

2021-08-24 18:57:12 +0100 received badge  Nice Answer (source)
2021-07-01 03:39:13 +0100 received badge  Necromancer (source)
2021-07-01 03:39:13 +0100 received badge  Teacher (source)
2020-07-08 16:59:30 +0100 answered a question How to change the unreadable dark blue colour in the SageMath command line window under Windows-10?

New Sage user here. The blue-on-black color scheme also bothered me. Thought I should provide more information.

Based on what I read here, I tried %colors:

sage: %colors

and got

UsageError: %colors: you must specify a color scheme. See '%colors?'

So I tried %colors?

sage: %colors?                                                                                 
Docstring:
Switch color scheme for prompts, info system and exception handlers.

   Currently implemented schemes: NoColor, Linux, LightBG.

   Color scheme names are not case-sensitive.

   To get a plain black and white terminal:

      %colors nocolor
File:      ~/<decorator-gen-35>

Great, we can set a color scheme in Sage like this:

%colors Linux

If you want this to run every time you use Sage, add that command to your init.sage file.

Because I am on Linux, I created init.sage in the .sage directory in my user home: $HOME/.sage/init.sage

Read more in the Sage manual section "Sage startup scripts."


Also note that there might be more color schemes than those listed under %colors? ...

I misspelled the color scheme argument to %colors and noticed the following in the resulting "Unrecognized color scheme" error output:

Valid schemes: ['NoColor', 'Linux', 'LightBG', 'Neutral', '']

So "Neutral" is another valid option, despite being unmentioned by %colors?. Hope this helps other newbies!