Mercurial Hosting > luan
diff src/luan/tools/WebShell.java @ 115:eacf6ce1b47d
add IoLib
git-svn-id: https://luan-java.googlecode.com/svn/trunk@116 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Thu, 29 May 2014 09:26:44 +0000 |
parents | 2428ecfed375 |
children | d00f41edbbd6 |
line wrap: on
line diff
--- a/src/luan/tools/WebShell.java Mon May 26 05:39:54 2014 +0000 +++ b/src/luan/tools/WebShell.java Thu May 29 09:26:44 2014 +0000 @@ -20,6 +20,7 @@ import luan.LuanException; import luan.lib.BasicLib; import luan.lib.HtmlLib; +import luan.lib.IoLib; public class WebShell extends HttpServlet { @@ -59,7 +60,7 @@ luan = newLuanState(); session.putValue("luan",luan); } - luan.out = new PrintStream(history); + luan.set( "Io.stdout", IoLib.writer(new PrintStream(history)) ); LuanTable env = luan.global(); env.put("request",request); env.put("response",response);