From ecbb9e240c9658f26bec75ec449e1af14accc37c Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Fri, 8 May 2026 12:08:54 +0200 Subject: [PATCH] use chatwait for responsive streaming in sh and acme frontends --- 9p | 2 +- acme | 2 +- scripts/s/sh | 15 +-------------- 3 files changed, 3 insertions(+), 16 deletions(-) diff --git a/9p b/9p index 77c20cf..46c5792 160000 --- a/9p +++ b/9p @@ -1 +1 @@ -Subproject commit 77c20cf43dfc723a6f39d73920faf8d3360e4839 +Subproject commit 46c57923ec32bd46212abab786b5cb9afc2d7538 diff --git a/acme b/acme index f4e844b..b46f2c9 160000 --- a/acme +++ b/acme @@ -1 +1 @@ -Subproject commit f4e844b0a645542127ccf16eeeaef8e8d4f1f74f +Subproject commit b46f2c92b84c1935c1adecd311d48e9c555db8e7 diff --git a/scripts/s/sh b/scripts/s/sh index 3fedc93..4490967 100755 --- a/scripts/s/sh +++ b/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' }