show_error kitten: Use green color for closing tips
This commit is contained in:
parent
bdcb98eafc
commit
da5213346a
@ -23,11 +23,12 @@ def real_main(args: List[str]) -> None:
|
|||||||
cli_opts, items = parse_args(args[1:], OPTIONS, '', msg, 'hints', result_class=ErrorCLIOptions)
|
cli_opts, items = parse_args(args[1:], OPTIONS, '', msg, 'hints', result_class=ErrorCLIOptions)
|
||||||
error_message = sys.stdin.buffer.read().decode('utf-8')
|
error_message = sys.stdin.buffer.read().decode('utf-8')
|
||||||
sys.stdin = open(os.ctermid())
|
sys.stdin = open(os.ctermid())
|
||||||
|
if cli_opts.title:
|
||||||
print(styled(cli_opts.title, fg_intense=True, fg='red', bold=True))
|
print(styled(cli_opts.title, fg_intense=True, fg='red', bold=True))
|
||||||
print()
|
print()
|
||||||
print(error_message)
|
print(error_message)
|
||||||
print()
|
print()
|
||||||
input('Press Enter to close.')
|
input('\x1b[1;32mPress Enter to close\x1b[m')
|
||||||
|
|
||||||
|
|
||||||
def main(args: List[str]) -> None:
|
def main(args: List[str]) -> None:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user