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

change TERM to xterm #56

Closed
wants to merge 1 commit into from
Closed

change TERM to xterm #56

wants to merge 1 commit into from

Conversation

MrException
Copy link

Changing the TERM environment variable to xterm. This will allow you to ssh into another box and run tmux or screen properly.

This should fix #44 and #50.

@samvasko
Copy link
Contributor

The million dollar question is: But will it break something else?

@Vivix
Copy link
Contributor

Vivix commented Dec 1, 2013

A safer option might be: screen-16color, or similar.

@MrException
Copy link
Author

I've left it as xterm for a few days now and everything seems to be ok. I'll maybe play with 'screen-16color', I've also seen 'cygwin' suggested.

@isimmons
Copy link

isimmons commented Dec 4, 2013

@MrException I don't know a lot about Linux but I had been manually setting TERM=linux every time I ssh into my fortrabbit app to avoid problems caused by TERM msys not known. Is it better to use xterm? I changed mine in to xterm in init.bat and it works.

Just don't know if all linux distributions have xterm or is linux a generic one that works with all of them?

@Vivix
Copy link
Contributor

Vivix commented Dec 5, 2013

As far as I know, terminfo describes a terminal to correct your colour output, terminal size, handling of keys, and various pitfalls from legacy hardware. That's why using the wrong one can potentially create strange behaviour. It seems xterm suits cmder fine, though. Reading the files and what they describe of your terminal, however, isn't something I've done. So how xterm differs from 'linux' terminfo entry isn't known to me.

If you want, however, you can test by changing your terminfo (listed in /usr/share/terminfo/ in alphabetized folders) and starting a curses or ncurses program. (Such as weechat-curses) and seeing what happens, just to see that it has an effect.

This was referenced Dec 5, 2013
@MrException
Copy link
Author

@brkc's PR is probably better. #75

@MrException MrException closed this Dec 5, 2013
@MrException MrException deleted the fix-term branch December 5, 2013 16:46
@isimmons
Copy link

isimmons commented Dec 6, 2013

@Vivix thanks for the info. I can't test like that on a fortrabbit ssh session due to limited access to things but will definitely look at my local vagrant dev environment.

You guys seem to know which one is best but just a FYI all three linux, xterm, and cygwin seem to work fine for me.

Just went ahead and changed mine to cygwin.

@tsixit
Copy link

tsixit commented Jun 21, 2017

when i change term into xterm, then clear comman doesn't more work. Any solution ?

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

Successfully merging this pull request may close these issues.

screen irssi, mutt - Cannot find terminfo entry for 'msys'.
5 participants