Didn’t get as far as I wanted on the text selection feature for nomad. I did fix a bug with mouse tracking control sequences not being parsed correctly, and I also started work on detecting mouse press/release sequences.
Next I will have to make the subterminal aware of where it is relative to the host terminal so that it can calculate the offset position.
It’s possible that the program running in a subterminal will expect to receive mouse control sequences. This is normally controlled with a flag that enables this behaviour, so I might have to make the subterminal aware of this flag and make sure that text selection can only be done if the program being run is not interested in mouse tracking (e.g. bash doesn’t care about mouse clicks, so it won’t set this particular flag).