stayradiated / terminal.sexy

Create, view and edit terminal colorschemes.
terminal.sexy
MIT License
919 stars 56 forks source link

Support for more terminals #15

Open cepko33 opened 10 years ago

cepko33 commented 10 years ago

Add input translation for gnome-terminal, xfce4-terminal, etc.

stayradiated commented 10 years ago

There is already support for exporting to Gnome Terminal and XFCE4 Terminal.

image

Do you mean add support for importing schemes from these terminals?

hjc commented 9 years ago

I wouldn't mind taking a stab at an importer for Terminator. Can you point me in the right direction as to where to start @stayradiated? Mostly just a file name would be good!

stayradiated commented 9 years ago

All the terminal importing/exporting is handled by the termcolors library.

Here is a link to the terminator format file.

An importer is basically just a function that searches through the config file looking for colors. I tend to use regular expressions to do this. The trickiest part is getting it to work with all the variations that the config file can allow.

You can see the source for the importers that already exist:

It's also a good idea to write a test for the importer, to make sure it works with a variety of inputs.

The Xresources test is a good example of this.

If you have any other questions, let me know.