term.js icon indicating copy to clipboard operation
term.js copied to clipboard

Support for bright colortheme

Open lekv opened this issue 10 years ago • 2 comments

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

lekv avatar Aug 11 '13 14:08 lekv

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 avatar Aug 12 '13 13:08 chjj

@chjj thanks again for the great terminal. Has their been any progress towards making the colors more css'able

bvallelunga avatar Feb 07 '14 21:02 bvallelunga