terminal: use COLORTERM=kmscon as default

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>
This commit is contained in:
David Herrmann 2012-12-12 21:29:23 +01:00
parent 5a33f412d9
commit 6be24df169

View File

@ -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;