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 from msys to cygwin. #75

Merged
merged 1 commit into from
Dec 7, 2013
Merged

Change TERM from msys to cygwin. #75

merged 1 commit into from
Dec 7, 2013

Conversation

brkc
Copy link
Contributor

@brkc brkc commented Dec 5, 2013

Change TERM from msys to cygwin.

Set TERM=cygwin as that actually exists in common terminfo databases.
msys is a fork of cygwin so this is definitely the most compatible thing to do.

msys is a loose alias for cygwin in msysgit. From the msysgit termcap:

cygwin:\
        :xn@:op=\E[39;49m:Km=\E[M:tc=linux:

msys:\
        :xn@:op=\E[39;49m:Km=\E[M:tc=linux:tc=rxvt:

This used to be a direct alias to cygwin in the past. Not sure what the purpose of the new addition is here. It looks to be adding mostly eccentric capabilities that cmd does not support. man terminfo if you want to try to understand what the things below mean. Everything works fine for me after the switch.

$ infocmp -L cygwin msys
comparing cygwin to msys.
    comparing booleans.
        has_meta_key: F:T.
    comparing numbers.
    comparing strings.
        cursor_visible: NULL, '\E[?25h'.
        enter_ca_mode: NULL, '\E7\E[?47h'.
        exit_ca_mode: NULL, '\E[2J\E[?47l\E8'.
        init_1string: NULL, '\E[?47l\E=\E[?1l'.
        init_2string: NULL, '\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l'.
        key_a1: NULL, '\EOw'.
        key_a3: NULL, '\EOy'.
        key_c1: NULL, '\EOq'.
        key_c3: NULL, '\EOs'.
        key_f0: NULL, '\E[21~'.
        keypad_local: NULL, '\E>'.
        keypad_xmit: NULL, '\E='.
        parm_down_cursor: NULL, '\E[%p1%dB'.
        parm_left_cursor: NULL, '\E[%p1%dD'.
        parm_right_cursor: NULL, '\E[%p1%dC'.
        parm_up_cursor: NULL, '\E[%p1%dA'.

Of course, one could also just install the msys entry to the server being SSHed into:

$ wget https://raw.github.com/msysgit/msysgit/master/etc/termcap
$ tic -e msys termcap

Would close #44, #50, and #56.

@brkc brkc mentioned this pull request Dec 5, 2013
@MrException MrException mentioned this pull request Dec 5, 2013
@gustavohenke
Copy link

Could this be the reason why I can't use nano while using ssh?

@isimmons
Copy link

isimmons commented Dec 6, 2013

@gustavohenke yes. Nano among other things don't work for me via ssh unless I set TERM. If this is your issue when you try to open nano you should see some error message about msys

Error opening terminal: msys.

or another error I get for some commands like 'clear'

'msys': unknown terminal type.

@gustavohenke
Copy link

@isimmons That's exactly the same problem I'm facing.

@brkc
Copy link
Contributor Author

brkc commented Dec 6, 2013

@gustavohenke This pull request should fix your problem.

@samvasko
Copy link
Contributor

samvasko commented Dec 7, 2013

Thanks :)

samvasko added a commit that referenced this pull request Dec 7, 2013
Change TERM from msys to cygwin.
@samvasko samvasko merged commit 2b12546 into cmderdev:master Dec 7, 2013
@brkc brkc deleted the term-cygwin branch December 9, 2013 23:51
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'.
4 participants