From 9ece05be716c92b451ff84952f389f1ca8d30abd Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Fri, 22 Mar 2019 12:16:49 -0700 Subject: Trying to fix xterm UTF8 encoding This makes it slightly better but doesn't seem to totally fix it. Every time I open a terminal, I have to ctrl+right-click and select "UTF-8 Encoding". Not sure how to make this setting persistent. --- common.nix | 1 + linux.nix | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/common.nix b/common.nix index b0af3b8..e872492 100644 --- a/common.nix +++ b/common.nix @@ -12,6 +12,7 @@ in PATH = "${homedir}/bin:${homedir}/.cabal/bin:${homedir}/.local/bin:$PATH"; PAGER = "less"; LEDGER_FILE = "${homedir}/.hledger.journal"; + XTERM_LOCALE = "en_US.UTF-8"; }; keyboard.options = [ "caps:ctrl_modifier" ]; file = { diff --git a/linux.nix b/linux.nix index 5934f7d..c7b2cce 100644 --- a/linux.nix +++ b/linux.nix @@ -9,11 +9,12 @@ in xresources = { properties = { - "XTerm*font" = "*-fixed-*-*-*-*-*"; - "XTerm*faceName" = "mononoki"; + "XTerm*font" = "-*-terminus-medium-r-normal--18-*-*-*-*-*-iso10646-1"; + "XTerm*faceName" = "Terminus"; "XTerm*faceSize" = "10"; "XTerm*termName" = "xterm-256color"; "XTerm*metaSendsEscape" = true; + "XTerm*utf8" = true; }; extraConfig = builtins.readFile(solarized-xresources + "/Xresources.light"); }; -- cgit v1.2.3