mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
no_color to reset
This commit is contained in:
parent
6d96a3d695
commit
b8caf65534
2 changed files with 3 additions and 3 deletions
|
@ -135,7 +135,7 @@ def buf_to_color_str(buf):
|
|||
else:
|
||||
pixels.append(pix.format(*rgb))
|
||||
last = rgb
|
||||
pixels.append("{NO_COLOR}\n")
|
||||
pixels.append("{RESET}\n")
|
||||
pixels[-1] = pixels[-1].rstrip()
|
||||
return "".join(pixels)
|
||||
|
||||
|
|
|
@ -26,8 +26,8 @@ def _ret_code():
|
|||
return None
|
||||
|
||||
|
||||
$PROMPT = $PROMPT.replace('{prompt_end}{NO_COLOR}',
|
||||
'{ret_code_color}{ret_code}{prompt_end}{NO_COLOR}')
|
||||
$PROMPT = $PROMPT.replace('{prompt_end}{RESET}',
|
||||
'{ret_code_color}{ret_code}{prompt_end}{RESET}')
|
||||
|
||||
|
||||
$PROMPT_FIELDS['ret_code_color'] = _ret_code_color
|
||||
|
|
Loading…
Add table
Reference in a new issue