nand2tetris / web-ide

A web-based IDE for https://nand2tetris.org
https://nand2tetris.github.io/web-ide
Other
39 stars 11 forks source link

The yellow "cursor" #165

Closed Shimon-Schocken closed 1 year ago

Shimon-Schocken commented 1 year ago

The yellow progress bar (I call it "cursor") in test scripts: It behaves and looks excellent when using the "play" action. We have to fix its behavior in the other modes, as follows:

(0) The cursor should always be visible. I mean, even BEFORE the user has selected any step/play/reset action, the first command / line in the script should be highlighted. The cursor should always highlight the NEXT command that will be executed if and when the user clicks "step" or "play".

(1) At the end of the script, the cursor should also be visible. It should be either on an empty line following the last command (best), or on the last command, whichever is easier to implement.

(2) When the user clicks "reset", the cursor should move to the first command in the script, and the scroll bar should roll to the top of the pane.