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

Default to TERM=xterm-256color #127

Open
egmontkob opened this issue Nov 27, 2017 · 1 comment
Open

Default to TERM=xterm-256color #127

egmontkob opened this issue Nov 27, 2017 · 1 comment

Comments

@egmontkob
Copy link

LilyTerm defaults to TERM=xterm which advertises 8 (16) colors only. Pretty much every graphical terminal emulator supports 256 colors nowadays (and VTE underneath LilyTerm actually supports 16 million).

You should advertise 256-color support by setting TERM=xterm-256color by default (which is VTE's default in case you don't override it).

See mate-desktop/mate-terminal#209 for some further details.

@ncaq
Copy link

ncaq commented Jun 11, 2018

xterm-256color setting rep=%p1%c\E[%p2%{1}%-%db.
LilyTerm is not support rep format.

So xterm and xterm-256color cause I upgrade to ncurses 6.1, atop layout broken. · Issue #25 · Atoptool/atop.

Example code

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

int main() {
  setupterm(NULL, fileno(stdout), NULL);
  putp(tparm(repeat_char, 'x', 5));
  return 0;
}

this code output is xxxxx on Konsole.
It is x on LilyTerm.

I suggest example gnome-256color.

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

2 participants