UNPKG
node-wings
Version:
latest (0.0.1-6)
0.0.1-6
node-wings ==========
cortezcristian/node-wings
node-wings
/
public
/
cmds
/
cmd.clear.js
14 lines
(10 loc)
•
251 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
cmdshell.
cmd
[
'clear'
] = { help :
'Clear the terminal screen'
, run :
function
(
res
){ cmdshell.
debuger
(
'[CMD] Clear is running'
); $(
'.mod-console .content span'
).
remove
(); $(
'.cmdout'
).
html
(
''
); $(
'.cmdin'
).
val
(
''
);
return
false
; } }