pub fn write_cursor(cursor_path: &Path, id: &str) -> Result<()>
Persist the cursor position to disk.
Creates parent directories if they do not exist (e.g. ~/.room/state/ on first run).
~/.room/state/