application-settable readline timeouts

This commit is contained in:
Chet Ramey
2021-03-11 18:41:17 -05:00
parent 128c5d41b0
commit 2fe2e8197e
20 changed files with 724 additions and 21 deletions
+9
View File
@@ -67,3 +67,12 @@ FOO
0
0
1
[?2004h[?2004l
timeout 1: ok
unset or null 1
[?2004h[?2004l
timeout 2: ok
unset or null 2
[?2004h[?2004l
timeout 3: ok
unset or null 3
+1 -1
View File
@@ -111,4 +111,4 @@ ${THIS_SH} ./read5.sub
${THIS_SH} ./read6.sub
# test behavior of readline timeouts
# ${THIS_SH} ./read7.sub
${THIS_SH} ./read7.sub
+3
View File
@@ -53,3 +53,6 @@ echo abcde | {
read -e -t 0.5 a
echo $a
}
read -e -t .0001 a <<<abcde
echo $a