We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 658a821 commit aa79350Copy full SHA for aa79350
1 file changed
mkDevShell/options.nix
@@ -16,8 +16,11 @@ let
16
str
17
;
18
19
- ansiBoldOrange = "$(tput setaf 202)";
20
- ansiReset = "$(tput sgr0)";
+ # Nix strings only support \t, \r and \n as escape codes, so actually store
+ # the literal escape "ESC" code.
21
+ esc = "";
22
+ ansiOrange = "${esc}[38;5;202m";
23
+ ansiReset = "${esc}[0m";
24
25
commandsToMenu = commands:
26
let
@@ -127,7 +130,7 @@ in
127
130
motd = mkOption {
128
131
type = types.str;
129
132
default = ''
- ${ansiBoldOrange}🔨 Welcome to ${config.name}${ansiReset}
133
+ ${ansiOrange}🔨 Welcome to ${config.name}${ansiReset}
134
$(menu)
135
'';
136
description = ''
0 commit comments