diff options
Diffstat (limited to 'pkgs/aszlig/xterm')
-rw-r--r-- | pkgs/aszlig/xterm/default.nix | 5 | ||||
-rw-r--r-- | pkgs/aszlig/xterm/set-colorterm.patch | 13 |
2 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/aszlig/xterm/default.nix b/pkgs/aszlig/xterm/default.nix new file mode 100644 index 00000000..bbb2144d --- /dev/null +++ b/pkgs/aszlig/xterm/default.nix @@ -0,0 +1,5 @@ +{ xterm }: + +xterm.overrideAttrs (drv: { + patches = [ ./set-colorterm.patch ]; +}) diff --git a/pkgs/aszlig/xterm/set-colorterm.patch b/pkgs/aszlig/xterm/set-colorterm.patch new file mode 100644 index 00000000..2f6b97c5 --- /dev/null +++ b/pkgs/aszlig/xterm/set-colorterm.patch @@ -0,0 +1,13 @@ +diff --git a/main.c b/main.c +index ec3e9bb..88b0983 100644 +--- a/main.c ++++ b/main.c +@@ -4580,6 +4580,8 @@ spawnXTerm(XtermWidget xw, unsigned line_speed) + xtermSetenv("TERM", resource.term_name); + if (!resource.term_name) + *get_tcap_buffer(xw) = 0; ++ else if (!strcmp(resource.term_name, "xterm-direct")) ++ xtermSetenv("COLORTERM", "truecolor"); + + sprintf(buf, "%lu", + ((unsigned long) XtWindow(SHELL_OF(CURRENT_EMU())))); |