Implement a history stack for browser-like back/forward navigation:
HistoryStack struct with back(), forward(), push(url), current()
- Truncates forward history when navigating to a new page (like a real browser)
- Used by
:back and :forward commands in the REPL
- Display position in history in the prompt or status (e.g.
[2/5])
Implement a history stack for browser-like back/forward navigation:
HistoryStackstruct withback(),forward(),push(url),current():backand:forwardcommands in the REPL[2/5])