printf in yesno

This commit is contained in:
James Tomasino 2019-01-01 23:11:37 -05:00
parent 4cd0a9f498
commit 95c008c31a
1 changed files with 1 additions and 0 deletions

1
burrow
View File

@ -563,6 +563,7 @@ edit_config () {
}
yesno () {
printf "%s \\n" "$1"
old_stty_cfg=$(stty -g)
stty raw -echo
yn=$(while ! head -c 1 | grep -i '[ny]'; do true; done)