jmettraux / reshell

some kind of shell (javascript)

This URL has Read+Write access

reshell / public / reshell.html
100644 47 lines (38 sloc) 0.797 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<html>
<head>
  <title>reshell</title>
  <style>
    body {
      /*text-align: center;*/
      color: #888;
      font-family: Courier;
      font-size: 14px;
      margin: 20px 10px;
    }
    input {
      color: #888;
      font-family: Courier;
      font-size: 14px;
      border: 0px;
    }
    pre {
      margin: 0px;
    }
    .reshell_in {
      color: blue;
    }
  </style>
 
  <script src="js/reshell.js"></script>
 
</head>
 
<body onclick="reshell.focus();">
 
<div id="reshell_stdout"></div>
<form onsubmit="reshell.eval(); return false;">
$ <input id="reshell_stdin" type="text" onkeyup="return reshell.onkey(event)" />
</form>
 
<script>
  var reshell = new Reshell('reshell');
  reshell.puts("reshell v0.0.1 (c) 2008 john mettraux");
  reshell.focus();
</script>
 
</body>
</html>