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

Export enviromental variable which would indicate that we are in KMSCON #60

Closed
swiftgeek opened this issue Dec 11, 2012 · 3 comments
Closed
Assignees

Comments

@swiftgeek
Copy link

One of the widely used ones is $COLORTERM

It's needed for eg. automatically spawning instance of tmux (which i don't want to do in gnome-terminal/Terminal)

Couple of terminals that sets COLORTERM — gnome-terminal, Terminal, rxvt-xpm
One that doesn't — terminology

Most of those which are running under X11 are using xterm-256color terminfo/termcap, so there was a need to differentiate them from the shell script in this way ;)

@dvdhrm
Copy link
Owner

dvdhrm commented Dec 12, 2012

Uh, yeah, we should probably set some environment variable. But to be honest, I am not 100% sure what COLORTERM is used for if TERM is set to something different. Applications might check this and as long as we don't ship a kmscon terminfo/termcap file, I don't think we should set this.

I will think about it, but some more investigation is definitely needed.
Thanks!

@swiftgeek
Copy link
Author

TERM is for terminfo/termcap and COLORTERM is for real name of the terminal (usually). It's used because almost every terminal emulator is using xterm-256color terminfo. Not all terminal emulators are setting COLORTERM (eg. terminology, but it's quite a fresh terminal emulator)

@dvdhrm
Copy link
Owner

dvdhrm commented Dec 17, 2012

I had to make /bin/login preserve the environment to actually pass COLORTERM through, but this is now possible. See commit 6be24df This should fix the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants