Open cepko33 opened 10 years ago
There is already support for exporting to Gnome Terminal and XFCE4 Terminal.
Do you mean add support for importing schemes from these terminals?
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!
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.
Add input translation for gnome-terminal, xfce4-terminal, etc.