DEFINITION MODULE Editor ; (* WordStar-style full-screen editor for the TP3 project. Operates directly on TextBuf (the shared TP3 text buffer). Returns to the menu on Ctrl-K-D; leaves the text in memory and reports whether any editing happened via "changed". *) PROCEDURE Run (drive : CHAR ; VAR fileName : ARRAY OF CHAR ; VAR changed : BOOLEAN) ; PROCEDURE GotoOffset (off : CARDINAL) ; (* Arm an error jump: the next Run places the cursor on the given 0-based TextBuf offset (TP3 errexit + editor2 path used by CmdCompile). The view scrolls to follow; ignored if no Run follows. *) END Editor.