Skip to content

Commit

Permalink
terminal: use COLORTERM=kmscon as default
Browse files Browse the repository at this point in the history
We now set COLORTERM to "kmscon" so applications can identify their
controlling terminal. Note that COLORTERM is not used for terminfo/termcap
detection (unlike TERM).

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
  • Loading branch information
David Herrmann committed Dec 12, 2012
1 parent 5a33f41 commit 6be24df
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/kmscon_terminal.c
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,10 @@ int kmscon_terminal_register(struct kmscon_session **out,
if (ret)
goto err_pty;

ret = kmscon_pty_set_colorterm(term->pty, "kmscon");
if (ret)
goto err_pty;

ret = kmscon_pty_set_argv(term->pty, term->conf->argv);
if (ret)
goto err_pty;
Expand Down

0 comments on commit 6be24df

Please sign in to comment.