I made some good progress this evening:
- nomad requests mouse tracking from the terminal it runs in
- it receives mouse tracking control sequences and detects scroll events, adjusting a number variable that tracks the current scroll position
Next I’ll have to figure out how to store lines that are pushed out of viewport by inserting new lines. Currently these are discarded, but scrolling them into view should now be possible.