use chatwait for responsive streaming in sh and acme frontends
This commit is contained in:
parent
188fa58557
commit
ecbb9e240c
2
9p
2
9p
|
|
@ -1 +1 @@
|
|||
Subproject commit 77c20cf43dfc723a6f39d73920faf8d3360e4839
|
||||
Subproject commit 46c57923ec32bd46212abab786b5cb9afc2d7538
|
||||
2
acme
2
acme
|
|
@ -1 +1 @@
|
|||
Subproject commit f4e844b0a645542127ccf16eeeaef8e8d4f1f74f
|
||||
Subproject commit b46f2c92b84c1935c1adecd311d48e9c555db8e7
|
||||
15
scripts/s/sh
15
scripts/s/sh
|
|
@ -277,20 +277,7 @@ done; exit 1'}
|
|||
cat $S/statewait >/dev/null >[2]/dev/null
|
||||
|
||||
while(! is_idle) {
|
||||
n=`{wc -c < $S/chat >[2]/dev/null}
|
||||
if(~ $#n 0) n=0
|
||||
if(test $n -gt $chat_off) {
|
||||
tail -c +`{expr $chat_off + 1} $S/chat
|
||||
chat_off=$n
|
||||
}
|
||||
sleep 0.05
|
||||
}
|
||||
|
||||
n=`{wc -c < $S/chat >[2]/dev/null}
|
||||
if(~ $#n 0) n=0
|
||||
if(test $n -gt $chat_off) {
|
||||
tail -c +`{expr $chat_off + 1} $S/chat
|
||||
chat_off=$n
|
||||
cat $S/chatwait
|
||||
}
|
||||
printf '\n'
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue