Compare commits

...

5 Commits

Author SHA1 Message Date
0xacx
89549cf318
Update README.md 2023-03-07 00:58:24 +02:00
0xacx
97543d1a1d
Merge pull request #30 from 0xacx/allow-input-editing
Allow input editing
2023-03-07 00:50:29 +02:00
acx
6244388c57 Allow input editing 2023-03-07 00:48:30 +02:00
0xacx
e90748a630
Merge pull request #27 from dmd/patch-1
enable readline
2023-03-07 00:45:48 +02:00
Daniel M. Drucker
163fc5f227
enable readline
Allow readline interactivity - editing of input.
2023-03-04 16:37:49 -05:00
2 changed files with 3 additions and 3 deletions

View File

@ -137,5 +137,5 @@ This script relies on curl for the requests to the api and jq to parse the json
## Contributors
:pray: Thanks to all the people who used, tested, submitted issues, PRs and proposed changes:
[pfr-dev](https://www.github.com/pfr-dev), [jordantrizz](https://www.github.com/jordantrizz), [se7en-x230](https://www.github.com/se7en-x230), [mountaineerbr](https://www.github.com/mountaineerbr), [oligeo](https://www.github.com/oligeo), [biaocy](https://www.github.com/biaocy)
[pfr-dev](https://www.github.com/pfr-dev), [jordantrizz](https://www.github.com/jordantrizz), [se7en-x230](https://www.github.com/se7en-x230), [mountaineerbr](https://www.github.com/mountaineerbr), [oligeo](https://www.github.com/oligeo), [biaocy](https://www.github.com/biaocy), [dmd](https://www.github.com/dmd)

View File

@ -236,7 +236,7 @@ while $running; do
if [ -z "$pipe_mode_prompt" ]; then
echo -e "\nEnter a prompt:"
read prompt
read -e prompt
else
# set vars for pipe mode
prompt=${pipe_mode_prompt}
@ -258,7 +258,7 @@ while $running; do
rm temp_image.png
else
echo "Would you like to open it? (Yes/No)"
read answer
read -e answer
if [ "$answer" == "Yes" ] || [ "$answer" == "yes" ] || [ "$answer" == "y" ] || [ "$answer" == "Y" ] || [ "$answer" == "ok" ]; then
open "${image_url}"
fi