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

Termite terminal support #985

Open
mbid opened this issue Jun 9, 2017 · 5 comments
Open

Termite terminal support #985

mbid opened this issue Jun 9, 2017 · 5 comments

Comments

@mbid
Copy link

mbid commented Jun 9, 2017

I'm using the terminal app termite. Yi seems to need get along with it very well:

[nix-shell:~]$ yi -f vty
yi: setupTerm: Couldn't look up terminfo entry "xterm-termite"

Yi is working in xterm and terminator. If this is low-hanging fruit, I'd love some pointers to get started myself.

@juliapath
Copy link
Contributor

juliapath commented Jun 10, 2017

As a workaround you could just masquerade as xterm-256color:

$ TERM=xterm-256color yi -f vty

The problem however is not with Yi, but with your system. Maybe this helps: NixOS/nixpkgs#8473

@mbid
Copy link
Author

mbid commented Jun 10, 2017

I guess it's a problem with termite, because I'm on arch linux. Anyway, just adding export TERM=xterm-256colorto my.bashrc` fixed it for me. Thanks!

@noughtmare
Copy link
Member

I can't reproduce this.

The setupterm error should only be shown if the setupterm c function returns an error... So maybe something is wrong with your curses setup?

Can you compile (with -lcurses) and run this code:

#include <stdio.h>
#include <term.h>
#include <stdlib.h>

int main() {
    int ret = 0;
    char* term = getenv("TERM");
    printf("%s\n",term);
    setupterm(term,1,&ret);
    printf("%d\n", ret);
    return 0;
}

it should return:

xterm-termite
1

@juliapath
Copy link
Contributor

juliapath commented Jun 10, 2017

@mbid In that case do you have termite-terminfo installed? I assumed you were on NixOS, because of the [nix-shell:~]$.

@mbid
Copy link
Author

mbid commented Jun 10, 2017

@janpath Yes, termite-terminfo is installed.

@noughtmare The c program does exactly what it you said it should.

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

4 participants