a web based terminal simulator which has its UI and UX copied from my old ‘kitty’ config along with my current git bash setup.. this is running on arch, btw ;)
used claude to help me with the command dispatcher function.
a web based terminal simulator which has its UI and UX copied from my old ‘kitty’ config along with my current git bash setup.. this is running on arch, btw ;)
used claude to help me with the command dispatcher function.
i have built a web based terminal simulator using html css and javascript which is supposedly running on arch linux, BTW hehe. i have learned a lot about objects and object properties in js while doing this project. its quite astonishing how a dark background screen with colorful monospace text with input makes the screen feel like a real terminal.
for the commands i have used a basic object which has the commands and their functions stored as key value method pairs.
in my opinion, the tree and hollywood commands were quite challlenging to add. tried adding grep command but messed up so removed it. i love how this has turned out to be.
absolutely will recommend anyone learning js to try and build a basic web based terminal simulator to learn js in a fun (and kinda hard) way doing this project.
-first of all, this update took a lot of time due to the complexity of the logic behind these commands but i absolutley love how this has turned out to be. been working on this app continously for the past week and finally im getting to see it as a REPLICA of my kitty terminal of my arch linux rice.
Log in to leave a comment
in this update i have introduced a lot of changes to the file system. during this update i learned a lot about working with objects in js. i have used an object for file system and another for the files, for the subcommands or flags like -a,-r , i hsve used basic parsing and checking for the flag and running the code if the flag is called. a great learning opportunity. this sim lookin kinda real tho.
summary of the changes:
i have added a lot of checks and spent A LOT OF TIME on the mkdir, touch and rm commands so that this terminal sim feels a lot like the real terminal.
Log in to leave a comment
~ .~ in the terminal line is functional now, it shows the current working directory like real terminals.cat command which will make the files in the directories readable. this will add a new dimension to the game, a lore ;).ls -al which basically lists the hidden files in the directories. this can add a lot to the lore im trying to make.Log in to leave a comment
e and press tab then it autocompletes it into echo. there’s a catch, if there are more than one commands with the same characters like neofetch and name then it only autocompletes when the alphabet after the common one has been typed. not sure how to fix this, will prob fix in future updates.Log in to leave a comment
neofetch command. the system info shown is false, obv. im trying to make this as fun as i can.Log in to leave a comment
Log in to leave a comment
cls in the next update, cause why not :P and the echo command basically repeats what you type after it like echo hello returns hello.Log in to leave a comment