diff options
author | Neil Kollack <nkollack@gmail.com> | 2022-03-20 01:14:53 -0500 |
---|---|---|
committer | Neil Kollack <nkollack@gmail.com> | 2022-03-20 01:14:53 -0500 |
commit | 67f3eab7aba135fe669589927954d34c2fe30c3e (patch) | |
tree | a722457789171dfa5ac4185f277c3211ee0f3a6e /functions.js | |
parent | a8cbe2ec227e2244457d12d99fb3cdb0fc599f37 (diff) |
feat: garbage terminal
Diffstat (limited to 'functions.js')
-rw-r--r-- | functions.js | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/functions.js b/functions.js deleted file mode 100644 index 62aca84..0000000 --- a/functions.js +++ /dev/null @@ -1,67 +0,0 @@ -//import Terminal from './node_modules/xterm'; -//import "./node_modules/xterm/css/xterm.css"; -/* -const styles = { - fontFamily: 'sans-serif', - textAlign: 'center', -}; - -var terminal = new Terminal({ rows: 48, cols: 140 }); -terminal.open(document.getElementById('terminal'),false); - -var termPrompt = '$ '; -var command = ''; -var backspaceLimit = 2; - -terminal.open(document.getElementById('terminal')); -terminal.write('Welcome to Featherfall Containers!'); - -terminal.writePrompt = function () { - terminal.write('\r\n' + termPrompt); -}; - -terminal.on('key', - function (key, eVal) { - var isPrintable = ( - !eVal.metaKey && !eVal.altKey && !eVal.ctrlKey - ); - - switch (ev.key) { - case 'Enter': - if (command == 'clear') { - terminal.clear(); - } - - command = ''; - - terminal.writePrompt(); - break; - case 'Backspace': - console.log(terminal.rows); - - if (terminal.x > backspaceLimit) { - terminal.write('\b \b'); - } - break; - default: - if (isPrintable) { - command += key; - terminal.write(key); - } - break; - } - } -); - -terminal.on('paste', - function (copiedData, eVal) { - terminal.write(copiedData); - } -); -*/ -function toStudentView() { - location.replace("studentPage.html") -} -function logOut() { - location.replace("login.html") -}
\ No newline at end of file |