Lterm is a NJACK Winter of Code project. NWoC is a program that helps students understand the paradigm of Open Source contribution and gives them real world software development experience.
Now, something about the project :- Its a Terminal like copy but for Website, Pretty neat eh ?
At first i checked the project it was pretty cool so i tried more commands, as you can see after you execute every command and press help it shows completed and not completed , probably an array of all the items with a [0,1] value for not completed and completed.
Everything worked great but, When i executed the clear command which didnt show "completed" after i execute it. it was a BUG . i forked the project and went into the codebase :-
arr for checking if the command is executed or not, initially the value was 0.arr[6]=1;terminal.min.js which was interesting, i looked into it and searched "clear:function(){" and got the root of the problem :Darr[9]=1; but it still didnt worked like i wanted.. hmm what could be the problem this time ?var arr It should be global, i searched on StackOverflow and found an alternative, window.arr could also make a variable globally accessible. Hmm let's try it in the main.js fileclear or Clear command works just as it should be.