//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") }