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

Support for more terminals #15

Open
cepko33 opened this issue Oct 7, 2014 · 3 comments
Open

Support for more terminals #15

cepko33 opened this issue Oct 7, 2014 · 3 comments

Comments

@cepko33
Copy link

cepko33 commented Oct 7, 2014

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

@stayradiated
Copy link
Owner

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
Copy link

hjc commented Feb 2, 2015

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
Copy link
Owner

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.

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

3 participants