Enhencement of stephdl's shellinaboxd

shellinabox

(Ralf Jeckel) #1

@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/


(Rob Bosch) #2

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…)


(Stéphane de Labrusse) #3

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


(Rob Bosch) #4

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


(Ralf Jeckel) #5

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.


(Stéphane de Labrusse) #6

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

You got the credit Ralf :stuck_out_tongue:


(Ralf Jeckel) #7

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


(Ralf Jeckel) #8

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


(Stéphane de Labrusse) #9

merci :blush: