comparison web/src/luan/modules/web/web_shell.luan @ 185:5f50dba8ac7d

minor git-svn-id: https://luan-java.googlecode.com/svn/trunk@186 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Wed, 25 Jun 2014 07:06:16 +0000
parents 2c08e7e27a70
children 1cb298d918b2
comparison
equal deleted inserted replaced
184:69f1e79a9eb0 185:5f50dba8ac7d
28 end 28 end
29 end 29 end
30 end 30 end
31 31
32 local write = Http.response.text_writer().write 32 local write = Http.response.text_writer().write
33 write %> 33 write(%>
34 <html> 34 <html>
35 <title>Luan Shell</title> 35 <title>Luan Shell</title>
36 <body> 36 <body>
37 <p>This is a command shell. Enter commands below. 37 <p>This is a command shell. Enter commands below.
38 <pre><% 38 <pre><%)
39 for _,v in ipairs(history) do 39 for _,v in ipairs(history) do
40 write(v) 40 write(v)
41 end 41 end
42 write %></pre> 42 write(%></pre>
43 <form name='theForm' method='post'> 43 <form name='theForm' method='post'>
44 % <input name='cmd' size=60> 44 % <input name='cmd' size=60>
45 <input type=submit value=run> 45 <input type=submit value=run>
46 <input type=submit name=clear value=clear> 46 <input type=submit name=clear value=clear>
47 </form> 47 </form>
49 <script>document.theForm.cmd.focus();</script> 49 <script>document.theForm.cmd.focus();</script>
50 50
51 <p/> 51 <p/>
52 </body> 52 </body>
53 </html> 53 </html>
54 <% 54 <%)
55 55
56 end 56 end