ng/romvdp: extracted TRetroTerm
retroterm: added a private section; isolate the cursor coordinate logic