Lines Matching full:scp
114 static void scterm_scan_esc(scr_stat *scp, term_stat *tcp,
119 scterm_init(scr_stat *scp, void **softc, int code) in scterm_init() argument
167 scterm_term(scr_stat *scp, void **softc) in scterm_term() argument
178 scterm_scan_esc(scr_stat *scp, term_stat *tcp, u_char c) in scterm_scan_esc() argument
204 sc = scp->sc; in scterm_scan_esc()
208 tcp->saved_xpos = scp->xpos; in scterm_scan_esc()
209 tcp->saved_ypos = scp->ypos; in scterm_scan_esc()
214 sc_move_cursor(scp, tcp->saved_xpos, in scterm_scan_esc()
227 sc_term_up_scroll(scp, 1, sc->scr_map[0x20], in scterm_scan_esc()
241 sc_change_cursor_shape(scp, in scterm_scan_esc()
243 sc_clear_screen(scp); in scterm_scan_esc()
279 sc_term_up(scp, tcp->param[0], 0); in scterm_scan_esc()
283 sc_term_down(scp, tcp->param[0], 0); in scterm_scan_esc()
287 sc_term_right(scp, tcp->param[0]); in scterm_scan_esc()
291 sc_term_left(scp, tcp->param[0]); in scterm_scan_esc()
298 sc_move_cursor(scp, 0, scp->ypos + n); in scterm_scan_esc()
305 sc_move_cursor(scp, 0, scp->ypos - n); in scterm_scan_esc()
311 sc_move_cursor(scp, 0, 0); in scterm_scan_esc()
313 sc_move_cursor(scp, tcp->param[1] - 1, in scterm_scan_esc()
322 sc_term_clr_eos(scp, n, sc->scr_map[0x20], in scterm_scan_esc()
331 sc_term_clr_eol(scp, n, sc->scr_map[0x20], in scterm_scan_esc()
336 sc_term_ins_line(scp, scp->ypos, tcp->param[0], in scterm_scan_esc()
341 sc_term_del_line(scp, scp->ypos, tcp->param[0], in scterm_scan_esc()
346 sc_term_del_char(scp, tcp->param[0], in scterm_scan_esc()
351 sc_term_ins_char(scp, tcp->param[0], in scterm_scan_esc()
356 sc_term_del_line(scp, 0, tcp->param[0], in scterm_scan_esc()
361 sc_term_ins_line(scp, 0, tcp->param[0], in scterm_scan_esc()
369 if (n > scp->xsize - scp->xpos) in scterm_scan_esc()
370 n = scp->xsize - scp->xpos; in scterm_scan_esc()
371 sc_vtb_erase(&scp->vtb, scp->cursor_pos, n, in scterm_scan_esc()
373 mark_for_update(scp, scp->cursor_pos); in scterm_scan_esc()
374 mark_for_update(scp, scp->cursor_pos + n - 1); in scterm_scan_esc()
378 sc_term_backtab(scp, tcp->param[0]); in scterm_scan_esc()
382 sc_term_col(scp, tcp->param[0]); in scterm_scan_esc()
386 sc_term_right(scp, tcp->param[0]); in scterm_scan_esc()
390 sc_term_row(scp, tcp->param[0]); in scterm_scan_esc()
394 sc_term_down(scp, tcp->param[0], 0); in scterm_scan_esc()
472 tcp->saved_xpos = scp->xpos; in scterm_scan_esc()
473 tcp->saved_ypos = scp->ypos; in scterm_scan_esc()
478 sc_move_cursor(scp, tcp->saved_xpos, in scterm_scan_esc()
558 scp->border=tcp->param[0] & 0xff; in scterm_scan_esc()
559 if (scp == sc->cur_scp) in scterm_scan_esc()
560 sc_set_border(scp, scp->border); in scterm_scan_esc()
566 scp->bell_pitch = tcp->param[0]; in scterm_scan_esc()
567 scp->bell_duration = in scterm_scan_esc()
584 sc_change_cursor_shape(scp, v0, -1, -1); in scterm_scan_esc()
593 sc_change_cursor_shape(scp, -1, in scterm_scan_esc()
594 scp->font_size - v1 - 1, in scterm_scan_esc()
597 sc_change_cursor_shape(scp, -1, in scterm_scan_esc()
646 sc_change_cursor_shape(scp, in scterm_scan_esc()
670 scterm_puts(scr_stat *scp, u_char *buf, int len) in scterm_puts() argument
674 tcp = scp->ts; in scterm_puts()
676 scp->sc->write_in_progress++; in scterm_puts()
679 scterm_scan_esc(scp, tcp, *buf); in scterm_puts()
691 sc_term_gen_print(scp, &buf, &len, tcp->cur_attr); in scterm_puts()
696 sc_term_gen_scroll(scp, scp->sc->scr_map[0x20], tcp->cur_attr); in scterm_puts()
698 scp->sc->write_in_progress--; in scterm_puts()
704 scterm_ioctl(scr_stat *scp, struct tty *tp, u_long cmd, caddr_t data, in scterm_ioctl() argument
707 term_stat *tcp = scp->ts; in scterm_ioctl()
732 scterm_reset(scr_stat *scp, int code) in scterm_reset() argument
739 scterm_default_attr(scr_stat *scp, int color, int rev_color) in scterm_default_attr() argument
741 term_stat *tcp = scp->ts; in scterm_default_attr()
754 scterm_clear(scr_stat *scp) in scterm_clear() argument
756 term_stat *tcp = scp->ts; in scterm_clear()
758 sc_move_cursor(scp, 0, 0); in scterm_clear()
759 sc_vtb_clear(&scp->vtb, scp->sc->scr_map[0x20], tcp->cur_attr); in scterm_clear()
760 mark_all(scp); in scterm_clear()
764 scterm_notify(scr_stat *scp, int event) in scterm_notify() argument
775 scterm_input(scr_stat *scp, int c, struct tty *tp) in scterm_input() argument
781 scterm_fkeystr(scr_stat *scp, int c) in scterm_fkeystr() argument
787 scterm_sync(scr_stat *scp) in scterm_sync() argument