You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: assignments/assign5/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -577,7 +577,7 @@ cs107e rocks
577
577
3 history
578
578
```
579
579
580
-
Implement the up and down arrow keys to access commands from the history. Typing an up arrow changes the current line to display the command from the history that is previous to the one on the current line. Typing a down arrow changes the current line to display the command that ran _after_ the one on the current line, or whatever the user had typed until he/she typed up. Use the `shell_beep` when the user tries to move beyond either end of the history.
580
+
Implement the up and down arrow keys to access commands from the history. Typing an up arrow changes the current line to display the command from the history that is previous to the one on the current line. Typing a down arrow changes the current line to display the command that ran _after_ the one on the current line, or whatever the user had typed until he/she typed up. Call `shell_bell` to alert the user if they try to move beyond either end of the history.
581
581
582
582
What other history features will be handy? `!!` to repeat the last command? `!po` to repeat the most recent command matching the specified prefix `po`?
0 commit comments