term.js
term.js copied to clipboard
Support for bright colortheme
Hi Christopher,
I found your terminal via the latest HN discussion and I'm really excited that there's now a working, up-to-date, actively maintained vt100 emulator for browsers! Thanks a lot!
For my current Terminal+Browser pet-project I'd like to have a light color scheme. Currently I use vt100.js from the shellinabox project, however it doesn't work very well with more "fancy" applications like vim or mc. Term.js does, however it seems to lack support for a bright colortheme, although I've found hints to that in the source. Do you plan to implement that? Should I give it a shot my self and send a pull request? I think it'd be great if it stored a css identifier/id with the characters which would allow the user/developer to customize the colors via css.
Thanks again for the great work!!
Lars
You can change the colorscheme globally by altering the first 16 members of the Terminal.colors
array.
Terminal.colors[0] = '#000000';
Terminal.colors[1] = '#ff0000';
etc...
For the default foreground and background:
Terminal.colors[256] = Terminal.defaultColors.bg = '#ffffff';
Terminal.colors[257] = Terminal.defaultColors.fg = '#000000';
I'll look into making this more css'able.
@chjj thanks again for the great terminal. Has their been any progress towards making the colors more css'able