We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bb500c commit 06a65faCopy full SHA for 06a65fa
1 file changed
js/script.js
@@ -1,14 +1,16 @@
1
-const shellCommands = [
2
- {
3
- name: "help",
4
- description: "Gets informations about commands",
5
- usage: "help [command]",
6
- handler: helpHandler
7
- }
8
-]
9
-
10
console.log("Welcome to the shell!")
11
-let shellInput = document.getElementById("shellinput")
12
-function myFunction() {
13
- console.log("a")
14
-}
+window.onload = function () {
+ document.getElementById("shellinput").value = "";
+}
+
+function run(command) {
+function detectEnter(event,input) {
+ let keyCode = event.keyCode ? event.keyCode : e.which;
+ if(keyCode == 13) {
+ run(input)
15
+ }
16
0 commit comments