sagemath / sage-shell-mode

Emacs front end for SageMath
GNU General Public License v3.0
102 stars 16 forks source link

color in sage-shell-mode #43

Open mantepse opened 5 years ago

mantepse commented 5 years ago

I would like to use color in sage-shell-mode, for example using the ansi escape sequences. For example

print('\x1b[6;30;42m' + 'Success!' + '\x1b[0m')

should print "Success!" with a green background.

Is there a way to enable that? That would be really wonderful!

mantepse commented 5 years ago

The following might be helpful:

https://emacs.stackexchange.com/questions/16617/interpret-terminal-escape-codes-in-generic-process-output