Lines Matching refs:screen
76 * 1) describe line orientation & lines list concept against screen
77 * 2) describe conversion of screen to lines
95 /* Current tty screen. */
100 struct tty3270_line *screen;
132 #define TTY_UPDATE_LINES 0x4 /* Update visible screen lines */
133 #define TTY_UPDATE_ALL 0x7 /* Recreate screen. */
193 return tp->screen + tty3270_line_increment(tp, tp->line_write_start, num);
198 return tp->screen + tty3270_line_increment(tp, tp->line_view_start, num - tp->nr_up);
214 * The input line are the two last lines of the screen.
249 * The status line is the last line of the screen. It shows the string
250 * "Running"/"History X" in the lower right corner of the screen.
488 tp->screen[i].dirty = 0;
681 * has to be emitted to the tty and for 0x6d the screen
888 * Allocate tty3270 screen.
893 struct tty3270_line *screen;
897 screen = kcalloc(allocated, sizeof(struct tty3270_line), GFP_KERNEL);
898 if (!screen)
901 screen[lines].cells = kcalloc(cols, sizeof(struct tty3270_cell), GFP_KERNEL);
902 if (!screen[lines].cells)
906 return screen;
909 kfree(screen[lines].cells);
910 kfree(screen);
948 * Free tty3270 screen.
950 static void tty3270_free_screen(struct tty3270_line *screen, int old_lines)
955 kfree(screen[lines].cells);
956 kfree(screen);
960 * Resize tty3270 screen
967 struct tty3270_line *screen, *oscreen;
990 screen = tty3270_alloc_screen(tp, new_rows, new_cols, &new_allocated);
991 if (IS_ERR(screen))
1000 oscreen = tp->screen;
1001 tp->screen = screen;
1031 tty3270_free_screen(screen, new_rows);
1063 tty3270_free_screen(tp->screen, tp->allocated_lines);
1114 tp->screen = tty3270_alloc_screen(tp, tp->view.rows, tp->view.cols,
1116 if (IS_ERR(tp->screen)) {
1117 rc = PTR_ERR(tp->screen);
1167 tty3270_free_screen(tp->screen, tp->view.rows);
1255 * Insert character into the screen at the current position with the
1426 * Esc [ 0 J Erase from current position to bottom of screen inclusive
1427 * Esc [ 1 J Erase from top of screen to current position inclusive
1428 * Esc [ 2 J Erase entire screen (without moving the cursor)