git: 9front

Download patch

ref: 70543218384c06fc74c431380dc0eca2fc65f681
parent: 456e9172ce6cfa18b001b79e4f95d6882efab7f9
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
 }
--