                                                                                                                                                                                                                                                               
Delivered-To: richih.mailinglist+debian.org@gmail.com
Received: by 10.27.219.143 with SMTP id s137csp1413768wlg;
        Sat, 5 Dec 2015 21:24:42 -0800 (PST)
X-Received: by 10.194.185.234 with SMTP id ff10mr25632673wjc.170.1449379482302;
        Sat, 05 Dec 2015 21:24:42 -0800 (PST)
Return-Path: <pabs3@bonedaddy.net>
Received: from master.debian.org (master.debian.org. [2001:41b8:202:deb:216:36ff:fe40:4001])
        by mx.google.com with ESMTPS id i14si16034903wmf.113.2015.12.05.21.24.42
        for <richih.mailinglist+debian.org@gmail.com>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Sat, 05 Dec 2015 21:24:42 -0800 (PST)
Received-SPF: softfail (google.com: domain of transitioning pabs3@bonedaddy.net does not designate 2001:41b8:202:deb:216:36ff:fe40:4001 as permitted sender) client-ip=2001:41b8:202:deb:216:36ff:fe40:4001;
Authentication-Results: mx.google.com;
       spf=softfail (google.com: domain of transitioning pabs3@bonedaddy.net does not designate 2001:41b8:202:deb:216:36ff:fe40:4001 as permitted sender) smtp.mailfrom=pabs3@bonedaddy.net
Received: from localhost ([::1] helo=chianamo.localdomain)
	by master.debian.org with esmtp (Exim 4.84)
	(envelope-from <pabs3@bonedaddy.net>)
	id 1a5RoP-0000DE-LP; Sun, 06 Dec 2015 05:24:42 +0000
From: Paul Wise <pabs3@bonedaddy.net>
To: Joey Hess <joeyh@joeyh.name>,
	Richard Hartmann <richih@debian.org>
Cc: Paul Wise <pabs3@bonedaddy.net>
Subject: [myrepos] [PATCH 3/4] In continuous output mode print one line at a time.
Date: Sun,  6 Dec 2015 13:24:18 +0800
Message-Id: <1449379459-3296-3-git-send-email-pabs3@bonedaddy.net>
X-Mailer: git-send-email 2.6.2
In-Reply-To: <1449379459-3296-1-git-send-email-pabs3@bonedaddy.net>
References: <1449379459-3296-1-git-send-email-pabs3@bonedaddy.net>

This should make it feel more fluid for users.
---
 mr | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mr b/mr
index d10d5b5..c8300d0 100755
--- a/mr
+++ b/mr
@@ -769,7 +769,7 @@ sub terminal_friendly_spawn {
 			$| = 1;
 			print "$actionmsg$erase_line\r" if $actionmsg;
 			while ($pty->is_active) {
-				my $data = $pty->read();
+				my $data = $pty->getline();
 				if (defined $data && $data ne '') {
 					print "\n" if ($actionmsg && !$continous_output);
 					$continous_output = 1;
-- 
2.6.2

