From b9764bd8a6bf800624ba520ab9d82eb7c4a9ccde Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Sun, 5 Jun 2022 02:19:40 -0400 Subject: [PATCH] Now updated brace_color... --- tcshrc.prompt.colors | 3 +-- tcshrc.prompt.final | 11 ++++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/tcshrc.prompt.colors b/tcshrc.prompt.colors index 1a808c1..866a8ee 100644 --- a/tcshrc.prompt.colors +++ b/tcshrc.prompt.colors @@ -7,7 +7,7 @@ set date_color="ansi:5" set time_color="ansi:13" set text_color="reset" set oldp_color="${dim}" -set brace_color="${bright_yellow}" +set brace_color="ansi:11" set host_color="ansi:12" set name_color="${bright_cyan}" set at_color="${dim_cyan}" @@ -21,7 +21,6 @@ set color_start="%{" set color_end="%}" set oldp_color_seq="${color_start}${oldp_color}${color_end}" -set brace_color_seq="${color_start}${brace_color}${color_end}" set name_color_seq="${color_start}${name_color}${color_end}" set at_color_seq="${color_start}${at_color}${color_end}" set line_color_seq="${color_start}${line_color}${color_end}" diff --git a/tcshrc.prompt.final b/tcshrc.prompt.final index 0cecb6d..9bfbd43 100644 --- a/tcshrc.prompt.final +++ b/tcshrc.prompt.final @@ -45,6 +45,15 @@ if( "${curr_text_color}" != "${text_color}" ) then set text_color_seq="[`__build_sgr_code no-csi reset ${curr_text_color}`m" endif +if( ! $?curr_brace_color ) then + set curr_brace_color=impossible +endif +if( "${curr_brace_color}" != "${brace_color}" ) then + set curr_brace_color="${brace_color}" + set brace_color_seq="%{[`__build_sgr_code no-csi reset ${curr_brace_color}`m%}" +endif + + if( ${prompt_hcolor} != 0 ) then set last_color = ${reference_colors[${prompt_hcolor}]} endif @@ -236,7 +245,7 @@ if( ! $?CSHENV_DISABLE_PROMPT_PATH ) then set path_prompt_view="%{${path_color_seq}%}${path_prompt}%{${sgr_reset}%}" endif -set prompt_cool="%{\n%}${align_prefix}${battery_prefix}${battery_prompt}${date_prompt_view}%{ %}${time_prompt_view}${align_suffix}${brace_color_seq}\[${prompt_reference_view}${line_prompt_view}${depth_prompt_view}${line_spacer_view}${user_prompt_view}${at_view}${host_prompt_view}${git_prompt_view}${path_prompt_view}${brace_color_seq}\]${end_prompt}%{${text_color_seq}%}" +set prompt_cool="%{\n%}${align_prefix}${battery_prefix}${battery_prompt}${date_prompt_view}%{ %}${time_prompt_view}${align_suffix}${brace_color_seq}\[%{${sgr_reset}%}${prompt_reference_view}${line_prompt_view}${depth_prompt_view}${line_spacer_view}${user_prompt_view}${at_view}${host_prompt_view}${git_prompt_view}${path_prompt_view}${brace_color_seq}\]%{${sgr_reset}%}${end_prompt}%{${text_color_seq}%}"