no_color to reset

This commit is contained in:
a 2020-10-09 01:04:52 +03:00
parent 6d96a3d695
commit b8caf65534
2 changed files with 3 additions and 3 deletions

View file

@ -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)

View file

@ -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