Terminal: COLORTERM=truecolor to mean 24 bit color support
this fixes mc support for 256-color skins. bug #17719 Change-Id: Ifead9fc3acf396cada6f9ce4d83579657b74c86f Reviewed-on: https://review.haiku-os.org/c/haiku/+/5249 Reviewed-by: Fredrik Holmqvist <[email protected]> Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
5847cd11a6
commit
f123acc1d9
@@ -74,7 +74,8 @@
|
|||||||
|
|
||||||
// TODO: should extract from /etc/passwd instead???
|
// TODO: should extract from /etc/passwd instead???
|
||||||
const char *kDefaultShell = "/bin/sh";
|
const char *kDefaultShell = "/bin/sh";
|
||||||
const char *kTerminalType = "xterm";
|
const char *kColorTerminalType = "truecolor";
|
||||||
|
const char *kTerminalType = "xterm-256color";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set environment variable.
|
* Set environment variable.
|
||||||
@@ -549,6 +550,7 @@ Shell::_Spawn(int row, int col, const ShellParameters& parameters)
|
|||||||
/*
|
/*
|
||||||
* setenv TERM and TTY.
|
* setenv TERM and TTY.
|
||||||
*/
|
*/
|
||||||
|
setenv("COLORTERM", kColorTerminalType, true);
|
||||||
setenv("TERM", kTerminalType, true);
|
setenv("TERM", kTerminalType, true);
|
||||||
setenv("TTY", ttyName, true);
|
setenv("TTY", ttyName, true);
|
||||||
setenv("TTYPE", fShellInfo.EncodingName(), true);
|
setenv("TTYPE", fShellInfo.EncodingName(), true);
|
||||||
|
|||||||
Reference in New Issue
Block a user