Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change terminal colors? #52

Closed
ekollof opened this issue Feb 21, 2015 · 2 comments
Closed

Change terminal colors? #52

ekollof opened this issue Feb 21, 2015 · 2 comments

Comments

@ekollof
Copy link

ekollof commented Feb 21, 2015

It would be nice to have dark backgrounds and light text. Or at least have that configurable according to taste. It also has a practical use. You could for instance have different colors depending on machines for production and development.

@skavanagh
Copy link
Collaborator

Yeah, that would be really nice to be able to configure in the app

You can change the to a dark background by editing
https://github.com/skavanagh/KeyBox/blob/master/src/main/webapp/_res/js/tty/term.js#L357-L361
comment out lines 358 - 359 and uncomment 360 - 361. You may have to fix up some css too.

Also, you could change

https://github.com/skavanagh/KeyBox/blob/master/src/main/webapp/admin/secure_shell.jsp#L250-L256

to pass in the colors like so

termMap[id] = new Terminal({
        cols: Math.floor($('.output:first').innerWidth()/7.2981), rows: 24,
        screenKeys: false,
        useStyle: true,
        cursorBlink: true,
        convertEol: true,
        colors: [
                '#000000',
                '#cd0000',
                '#00cd00',
                '#cdcd00',
                '#0000ee',
                '#cd00cd',
                '#00cdcd',
                '#e5e5e5',
                '#7f7f7f',
                '#ff0000',
                '#00ff00',
                '#ffff00',
                '#5c5cff',
                '#ff00ff',
                '#00ffff',
                '#ffffff',
                '#ffffff',
                '#000000'
        ]
 });

@ekollof
Copy link
Author

ekollof commented Feb 21, 2015

Thanks, I'll give it a burl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants