WIP: Reworked input module for the terminal front-end

This commit is contained in:
2026-06-23 06:05:58 +02:00
parent 8682de7d17
commit 8cb42f07a2
6 changed files with 107 additions and 50 deletions
+4 -4
View File
@@ -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);