magicalraccoon / tootstream

A command line interface for interacting with Mastodon instances
MIT License
259 stars 32 forks source link

[Proposal] Handle <C-c> by application #201

Open cleac opened 5 years ago

cleac commented 5 years ago

A small proposal of feature that would make user experience better :smile:

When hitting <C-c> (like Control+C), tootstream just exists. Adding prompting whether user really wants to exit would help much to use an application :smile:

samdmarshall commented 5 years ago

i would be cautious with implementing this. usually the control+c binding is used to send a signal to kill the process. if, for example, the app was being unresponsive, it seems very undesirable to then try to trigger an interactive prompt. having key-bindings that can be attached to either a hard or soft quit action (with hard just quitting and soft providing a prompt) would be more favorable. additionally having an alternative way to exit streaming mode (if there is a problem) without being tied to the “control+c” key-binding, would be a positive change (in my opinion).