Enhencement of stephdl's shellinaboxd

@stephdl I love your module shellinabox/terminal :heart_exclamation: Great to have a commandline in the GUI.
ATM the default sreen is black on white. I liked to have it reverse, white on black like this:

I’m an old man now and my eyes are nomore the best…

So I added a black-on-white.css to /usr/share/shellinabox

#vt100 .ansiDefR {
  color:            #ffffff;

#vt100 .bgAnsiDefR {
  background-color: #000000;

#vt100 #scrollable.inverted .ansiDefR {
  color:            #000000;

#vt100 #scrollable.inverted .bgAnsiDefR {
  background-color: #ffffff;

and I changed the OPT line in /etc/sysconfig/shellinaboxd to

OPTS="--no-beep --localhost-only --disable-ssl --service=/:SSH:localhost:2222 >/dev/null 2>&1 --user-css Normal:+white-on-black.css,Reverse:-black-on-white.css"

With this it’s possible to change the color with a rightclick (Normal/Reverse):

I think this would be a great enhancement to your module if this was standard.
What do you think?

All info I got from https://github.com/shellinabox/shellinabox/


I love this enhancement. Great work @flatspin!
(although I don’t use the module myself since proxmox comes with a shell-in-a-box-out-of-the-box…)

great shot, I’m not even not sure that we need another css, black background on white characters is the best.

Why not make it realy nifty: add 2 boxes with colorpicker and have your custom terminal… W0W!

White on black is the best for sure, but it’s almost no work to have both, so why not?
I set the normal to “white on black” and added reverse just because it was there already.
Maybe there are some who want “black on white” due to a debility of sight or somethingelse. Don’t know.

1 Like

released both for ns6 and ns7, you have anormal mode (black background) and a reversed one

You got the credit Ralf :stuck_out_tongue:

1 Like

Thank you Stephane.
If we ever meet IRL, I’ll spend you a beer or two or three… :smile:

Updated on NS6 and NS7. Both are working perfectly!
Thanks again @stephdl for working out my suggestion!

merci :blush: