You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.html
+16-30Lines changed: 16 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -28,31 +28,19 @@
28
28
<scriptsrc="javascripts/example.js"></script>
29
29
<styletype="text/css">
30
30
#shell-panel {
31
-
display: none;
32
-
height:400px;
33
-
width:97.0%;
34
-
opacity:0.9;
31
+
height:200px;
32
+
width:100%;
35
33
background-color:#002f05;
36
34
color:#00fe00;
37
-
position: fixed;
38
35
padding:20px20px20px20px;
39
-
top:0;
40
-
left:0;
41
-
z-index:1000;
42
-
font-family:'Source Code Pro', sans-serif;
43
-
font-size:0.9em;
36
+
font-family:'Source Code Pro';
44
37
overflow: scroll;
45
38
overflow-x: hidden;
46
39
overflow-y: scroll;
40
+
border:1px dashed #E6EBE0;
47
41
}</style>
48
42
</head>
49
43
<body>
50
-
<divid="shell-panel">
51
-
<div>Type <code>help</code> or hit <code>TAB</code> for a list of commands. Hit
52
-
<code>Ctrl-C</code> to hide the shell
53
-
</div>
54
-
<divid="shell-view"></div>
55
-
</div>
56
44
<divid="header">
57
45
<nav>
58
46
<liclass="fork"><ahref="https://github.com/sdether/josh.js">View On GitHub</a></li>
@@ -89,7 +77,7 @@ <h1>josh.js 0.2</h1>
89
77
<code>shell.js</code> - visual presentation of the shell and command handling
90
78
</li>
91
79
<li>
92
-
<code>pathhandler.js</code> - provide cd, ls, pwd and path completion toolikit
80
+
<code>pathhandler.js</code> - provide cd, ls, pwd and path completion toolkit
93
81
</li>
94
82
<li>
95
83
<code>history.js</code> - localStorage backed command history
@@ -100,8 +88,14 @@ <h1>josh.js 0.2</h1>
100
88
</ul>
101
89
102
90
<h2>Live Demo</h2>
91
+
Drag bottom of shell to change size.
92
+
<divid="shell-panel">
93
+
<div>Type <code>help</code> or hit <code>TAB</code> for a list of commands.
94
+
</div>
95
+
<divid="shell-view"></div>
96
+
</div>
103
97
104
-
<pid="demo"><em>Hit the <spanstyle="color: #ffcc00; font-weight: bold; font-size: 1.2em">~</span> key to show a demo console ( <ahref="docs/example.html">Annotated source of demo</a>)</em></p>
98
+
<p><em><ahref="docs/example.html">Annotated source of demo</a></em></p>
105
99
106
100
<h2>Tutorials</h2>
107
101
<ul>
@@ -125,15 +119,7 @@ <h2>
125
119
<li>needs minified versions of complete toolkit and just readline.js</li>
126
120
<li>needs code documentation and documentation site</li>
127
121
<li>would like to add AMD support</li>
128
-
<li>base shell UI should get some basic behaviors
129
-
130
-
<ul>
131
-
<li>
132
-
<code>more</code>-like handling for output that exceeds the shell viewport size
133
-
</li>
134
-
<li>resizing and close chrome</li>
135
-
</ul>
136
-
</li>
122
+
<li>implement <em>NCurses</em> for better UI control</li>
137
123
<li>Readline has not been tested with non-ascii.</li>
138
124
</ul>
139
125
<h2>
@@ -268,9 +254,9 @@ <h3>
268
254
<code>shell.js</code> provides the following commands:</p>
269
255
270
256
<ul>
271
-
<li>help - list all known commands (including user added)</li>
272
-
<li>clear - clear the "screen" i.e. viewport</li>
273
-
<li>history - show the command history captured by <code>readline.js</code> in <code>history.js</code>
257
+
<li><code>help</code> - list all known commands (including user added)</li>
258
+
<li><code>clear</code> - clear the "screen" i.e. viewport</li>
259
+
<li><code>history</code> - show the command history captured by <code>readline.js</code> in <code>history.js</code>
0 commit comments