lterm
lterm copied to clipboard
History command doesn't work as it should.
history command should display all the commands used in the terminal along with the arguments and if a command is used multiple times then the history command is supposed to display that command multiple times in the correct order.
It can be solved by making an array and storing the commands every time a command is used.
yes,
That is a problem. I contributed to the history command and I did not pay attention to these things. :worried: .
On trying to solve this, In the terminal whenever we press the UP ARROW
we will be taken to previous command right, If we know how this works, I think the same can be applied to printing the previous commands .
I think adding whatever we type into an array of strings with no fixed space will be the solution
@nvinayvarma189 You can check Jquery Terminal Plugin docs for the up arrow feature.