File: 0002-flush-output-of-testclient.patch

package info (click to toggle)
lua-lpty 1.0.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 168 kB
  • sloc: ansic: 546; makefile: 34
file content (19 lines) | stat: -rw-r--r-- 462 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
From: Enrico Tassi <gareuselesinge@debian.org>
Date: Fri, 23 Aug 2013 16:47:32 +0200
Subject: flush output of testclient

---
 samples/testclient.lua | 1 +
 1 file changed, 1 insertion(+)

diff --git a/samples/testclient.lua b/samples/testclient.lua
index 59ea79c..46e8f1d 100644
--- a/samples/testclient.lua
+++ b/samples/testclient.lua
@@ -11,5 +11,6 @@
 while true do
 	s = io.read()
 	print("+"..s.."+")
+	io.flush()
 	if s == "quit" then os.exit() end
 end