todotxt / todo.txt-cli

☑️ A simple and extensible shell script for managing your todo.txt file.
http://todotxt.org
GNU General Public License v3.0
5.56k stars 713 forks source link

Return from user prompt without requiring Enter #354

Closed inkarkat closed 3 years ago

inkarkat commented 3 years ago

Supplying the user confirmation via "yes".

Before submitting a pull request, please make sure the following is done:

This is an extended alternative implementation of #152 with added refactoring and test coverage.

inkarkat commented 3 years ago

Ah, bummer. That's what I meant when I commented It would be nice if someone could verify that this also works on MacOS; that one's causing compatibility problems most often.

The Bash on MacOS (looks like it's Bash 3.2.57(1)-release), doesn't support read -N yet :-( This was only added in Bash 4.1.

karbassi commented 3 years ago

The Bash on MacOS (looks like it's Bash 3.2.57(1)-release), doesn't support read -N yet :-( This was only added in Bash 4.1.

Welcome to macOS land! I can't speak for others, but first thing I do is upgrade the default apps (bash, zsh, gnu*, etc)