You are browsing as a guest. Sign up (or log in) to start making projects!

4h 8m 28s logged

Devlog 2: What Makes a Terminal a Terminal?

After a few hours of work, I was able to rewrite how commands work for TermTab. Before, commands were hardcoded into the execute() method in the Terminal class, which itself was integrated as part of the Terminal component. Now, the Terminal class is its own svelte.ts file and commands are fetched dynamically using Vite’s import.meta.glob().

I also added/modified a few commands including: time, info, and help. help now uses a dynamic fetching system, with each command managing its own help menu with command parameters as a string[].

As before, if you have any suggestions, feel free to comment!

0
4

Comments 0

No comments yet. Be the first!