WIP: Reworked input module for the terminal front-end
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
<script lang="ts">
|
||||
import Input from './terminal/Input.svelte';
|
||||
|
||||
let { username }: { username: string } = $props();
|
||||
|
||||
//const clearTerminal = (): void => clear();
|
||||
|
||||
//const printOutput = (e: HTMLElement, d: PrintData): void => print(e, d);
|
||||
@@ -18,8 +20,8 @@
|
||||
|
||||
function updateTerminal() {
|
||||
//isProcessActive = terminal.isProcessActive;
|
||||
username = terminal!.getUser().username;
|
||||
cwd = terminal!.getCwd();
|
||||
//username = terminal!.getUser().username;
|
||||
//cwd = terminal!.getCwd();
|
||||
}
|
||||
|
||||
function getWidth() {
|
||||
@@ -95,8 +97,6 @@
|
||||
getWidth: getWidth,
|
||||
getFontSize: getFontSize
|
||||
}; */
|
||||
|
||||
let username: string = $state('');
|
||||
let cwd: string = $state('');
|
||||
const hostname = 'terminal'; //TODO: Change this to pull from config on db
|
||||
//let isProcessActive = $state(false);
|
||||
|
||||
Reference in New Issue
Block a user