TechSpiritSS / Terminal-Portfolio

Terminal Style Portfolio made with HTML / CSS / JS
MIT License
64 stars 83 forks source link

Added the History command #115

Closed BhagatHarsh closed 1 year ago

BhagatHarsh commented 1 year ago

Fixes

Fixes #106

Types of changes

Description

So after this change now the user's command history is saved. only the valid commands are saved and, the 'history' command and invalid commands are not saved. to not clutter up the screen the history command is capped to atmost 10 past commands, after 10 commands it acts as a queue popping the first command and pushing a new one in. I have also added so that when the user open's the website the old user's commands can be directly accessed by up arrow.

Preview Link

Checklist:

TechSpiritSS commented 1 year ago

Great Work 🚀