Lines Matching refs:screen

24 One line screen editor for any program
150 static genchar *screen; /* pointer to window buffer */
151 static genchar *cursor; /* Cursor in real screen */
160 FIRST, /* First time thru for logical line, prompt on screen */
161 REFRESH, /* Redraw entire screen */
162 APPEND, /* Append char before cursor to screen */
163 UPDATE, /* Update the screen as need be */
164 FINAL /* Update screen even if pending look ahead */
203 screen = Screen;
1184 /* Adjust screen to agree with inputs: logical line and cursor */
1185 /* If 'first' assume screen is blank */
1186 /* Prompt is always kept on the screen */
1199 register genchar *sptr; /* Pointer within screen */
1204 genchar nscreen[2*MAXLINE]; /* New entire screen */
1206 register genchar *nptr; /* Pointer to New screen */
1209 genchar *nscend; /* end of logical screen */
1220 cursor = screen;
1233 Do not update screen if pending characters
1245 If in append mode, cursor at end of line, screen up to date,
1248 Then output the character and adjust the screen only.
1255 print(i)&&((cursor-screen)<(w_size-1)))
1272 Does ncursor appear on the screen?
1273 If not, adjust the screen offset so it does.
1280 /* Center the cursor on the screen */
1287 Is the range of screen[0] thru screen[w_size] up-to-date
1293 sptr = screen;
1316 setcursor(sptr-screen,*nptr);
1347 /* Update screen overflow indicator if need be */
1361 * put the cursor to the <new> position within screen buffer
1370 register int old = cursor - screen;
1386 putchar(screen[old++]);
1393 cursor = screen+new;