ref: ab2838aa394e963ccc12ee937334bfdc54bb5565
parent: 3dbc32d7943225770bbf46cdedffadcecd8a9eb8
author: stanley lieber <stanley.lieber@gmail.com>
date: Fri Apr 25 05:25:08 EDT 2014
newt: write message header and body to virtual file before printing, to avoid stutter
--- a/rc/bin/newt
+++ b/rc/bin/newt
@@ -103,17 +103,19 @@
}
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
}