tldr-pages / tldr-c-client

C command-line client for tldr pages
MIT License
296 stars 49 forks source link

tldr client does not handle ctrl+c properly #39

Closed sushlala closed 4 years ago

sushlala commented 5 years ago

Reproduction Rate

everytime

Steps to Reproduce

~ $tldr j Local data is older than two weeks, use --update to update it. >>>>> this line is in red

(ctrl-c here) ~ $asdf >>>>> these are also in red! -bash: asdf: command not found >>>>> these are also in red!

screen shot 2018-10-08 at 1 11 12 pm

Result

bash text should go back to the way it was before

Expected Result

bash text is still red

Additional Information

~ $tldr --version Local data is older than two weeks, use --update to update it.

tldr v1.3.0 (v1.3.0) Copyright (C) 2016 Arvid Gerstmann Source available at https://github.com/tldr-pages/tldr-cpp-client ~ $

zlatanvasovic commented 4 years ago

This is almost certainly an issue with your custom Bash styling. It exits and works normally on various setups that I tried.

If it still bugs while you're using default shell config, then it's the bug with tldr script and you should notify me to reopen this issue.