PythonAnywhere Forums

changing the console colour scheme

not sure why i was looking into this today since i'm meant to be on holiday, but i thought I'd share brief notes on adjusting console colours:

  • open up the fullscreen console frame by adding "/frame/" to the end of your console's url
  • open up the developer tools
  • then change terminal properties via Anywhere.terminal.prefs_

eg

Anywhere.terminal.prefs_.set('background-color', 'wheat')
Anywhere.terminal.prefs_.set('foreground-color', '#533300')

More info in the hterm repo

Maybe saving this into a greasmonkey script would be a way to automatically load such customisations? not sure, i haven't used greasemonkey...

Huh. surprisingly, the setting gets saved, even when you close and re-open your browser, and for new consoles...

Sorry, but what does "open up the developer tools" mean?

It depends on which browser you're using. In the current version of Chrome:

  • Go to the "hamburger" menu at the top right.
  • Select "More tools"
  • Select "Developer tools"

In Firefox

  • Go to the "hamburger" menu at the top right.
  • Click the "Developer" icon
  • Select "Web copnsole"