From 28ca17b30f0ac34e11219c55933f1dc3ec409994 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Sun, 5 Jun 2022 03:23:13 -0400 Subject: [PATCH] Old prompt should just use an SGR reset. This makes it more simple. --- tcshrc.prompt.colors | 5 ----- tcshrc.prompt.defs | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/tcshrc.prompt.colors b/tcshrc.prompt.colors index bf159e7..20ec515 100644 --- a/tcshrc.prompt.colors +++ b/tcshrc.prompt.colors @@ -6,7 +6,6 @@ set date_color="ansi:5" set time_color="ansi:13" set text_color="reset" -set oldp_color="${dim}" set brace_color="ansi:11" set host_color="ansi:12" set user_color="ansi:14" @@ -20,16 +19,12 @@ set command_color="${dim}" set color_start="%{" set color_end="%}" -set oldp_color_seq="${color_start}${oldp_color}${color_end}" set at_color_seq="${color_start}${at_color}${color_end}" set line_color_seq="${color_start}${line_color}${color_end}" set prompt_color_seq="${color_start}${prompt_color}${color_end}" set depth_color_seq="${color_start}${depth_color}${color_end}" set command_color_seq="${color_start}${command_color}${color_end}" - -set oldp_color="${color_start}${dim_white}${color_end}" - ########################### # vim:filetype=tcsh ########################### diff --git a/tcshrc.prompt.defs b/tcshrc.prompt.defs index 452d8dd..b3df509 100644 --- a/tcshrc.prompt.defs +++ b/tcshrc.prompt.defs @@ -106,7 +106,7 @@ alias precmd 'source ${CSHENV_DIR}/tcshrc.prompt.final' set promptchars='%#' -set prompt_simple="${oldp_color_seq}[%n@%m: %c]%# " +set prompt_simple="%{${sgr_reset}%}[%n@%m: %c]%# " # Screens are almost certainly not a million chars wide. # If they are... oh well, that's a really weird one.