summaryrefslogtreecommitdiff
path: root/rc/bin/newt
diff options
context:
space:
mode:
authorstanley lieber <stanley.lieber@gmail.com>2014-04-25 09:25:08 -0400
committerstanley lieber <stanley.lieber@gmail.com>2014-04-25 09:25:08 -0400
commitab2838aa394e963ccc12ee937334bfdc54bb5565 (patch)
tree6a53d785e5ffb61f0bd35c539ddcc937c2b4ef78 /rc/bin/newt
parent3dbc32d7943225770bbf46cdedffadcecd8a9eb8 (diff)
downloadplan9front-ab2838aa394e963ccc12ee937334bfdc54bb5565.tar.xz
newt: write message header and body to virtual file before printing, to avoid stutter
Diffstat (limited to 'rc/bin/newt')
-rwxr-xr-xrc/bin/newt12
1 files changed, 7 insertions, 5 deletions
diff --git a/rc/bin/newt b/rc/bin/newt
index af5c15b3d..d0e8c44e5 100755
--- a/rc/bin/newt
+++ b/rc/bin/newt
@@ -103,17 +103,19 @@ y synchronize message list with server
}
fn printp{
if(test -d $mnt/$group/$1){
- grep -e '(^From|^Newsgroups|^Subject|^Date)' $1/header
- echo
- cat $1/body
+ { # don't stutter
+ grep -e '(^From|^Newsgroups|^Subject|^Date)' $1/header
+ echo
+ cat $1/body
+ } >/tmp/p
+ cat /tmp/p
}
echo
prompt=$group/$1
}
fn printpp{
- if(test -d $mnt/$group/$1){
+ if(test -d $mnt/$group/$1)
cat $1/article
- }
echo
prompt=$group/$1
}