Deleted Added
full compact
teken_subr.h (197539) teken_subr.h (197853)
1/*-
2 * Copyright (c) 2008-2009 Ed Schouten <ed@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2008-2009 Ed Schouten <ed@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/teken/teken_subr.h 197539 2009-09-27 18:19:41Z ed $
26 * $FreeBSD: head/sys/teken/teken_subr.h 197853 2009-10-08 10:26:49Z ed $
27 */
28
29static void teken_subr_cursor_up(teken_t *, unsigned int);
30static void teken_subr_erase_line(teken_t *, unsigned int);
31static void teken_subr_regular_character(teken_t *, teken_char_t);
32static void teken_subr_reset_to_initial_state(teken_t *);
33static void teken_subr_save_cursor(teken_t *);
34

--- 385 unchanged lines hidden (view full) ---

420 tr.tr_begin.tp_row = t->t_scrollreg.ts_end - nrows;
421 }
422
423 /* Blank trailing rows. */
424 teken_funcs_fill(t, &tr, BLANK, &t->t_curattr);
425}
426
427static void
27 */
28
29static void teken_subr_cursor_up(teken_t *, unsigned int);
30static void teken_subr_erase_line(teken_t *, unsigned int);
31static void teken_subr_regular_character(teken_t *, teken_char_t);
32static void teken_subr_reset_to_initial_state(teken_t *);
33static void teken_subr_save_cursor(teken_t *);
34

--- 385 unchanged lines hidden (view full) ---

420 tr.tr_begin.tp_row = t->t_scrollreg.ts_end - nrows;
421 }
422
423 /* Blank trailing rows. */
424 teken_funcs_fill(t, &tr, BLANK, &t->t_curattr);
425}
426
427static void
428teken_subr_device_control_string(teken_t *t __unused)
428teken_subr_device_control_string(teken_t *t)
429{
430
429{
430
431 teken_printf("device control string???\n");
431 teken_printf("Unsupported device control string\n");
432 t->t_stateflags |= TS_INSTRING;
432}
433
434static void
435teken_subr_device_status_report(teken_t *t, unsigned int cmd)
436{
437 char response[19] = "\x1B[?";
438 ssize_t len;
439

--- 299 unchanged lines hidden (view full) ---

739teken_subr_next_line(teken_t *t)
740{
741
742 t->t_cursor.tp_col = 0;
743 teken_subr_newline(t);
744}
745
746static void
433}
434
435static void
436teken_subr_device_status_report(teken_t *t, unsigned int cmd)
437{
438 char response[19] = "\x1B[?";
439 ssize_t len;
440

--- 299 unchanged lines hidden (view full) ---

740teken_subr_next_line(teken_t *t)
741{
742
743 t->t_cursor.tp_col = 0;
744 teken_subr_newline(t);
745}
746
747static void
748teken_subr_operating_system_command(teken_t *t)
749{
750
751 teken_printf("Unsupported operating system command\n");
752 t->t_stateflags |= TS_INSTRING;
753}
754
755static void
747teken_subr_pan_down(teken_t *t, unsigned int nrows)
748{
749
750 teken_subr_do_scroll(t, (int)nrows);
751}
752
753static void
754teken_subr_pan_up(teken_t *t, unsigned int nrows)

--- 498 unchanged lines hidden (view full) ---

1253
1254 teken_printf("single height single width???\n");
1255}
1256
1257static void
1258teken_subr_string_terminator(teken_t *t __unused)
1259{
1260
756teken_subr_pan_down(teken_t *t, unsigned int nrows)
757{
758
759 teken_subr_do_scroll(t, (int)nrows);
760}
761
762static void
763teken_subr_pan_up(teken_t *t, unsigned int nrows)

--- 498 unchanged lines hidden (view full) ---

1262
1263 teken_printf("single height single width???\n");
1264}
1265
1266static void
1267teken_subr_string_terminator(teken_t *t __unused)
1268{
1269
1261 teken_printf("string terminator???\n");
1270 /*
1271 * Strings are already terminated in teken_input_char() when ^[
1272 * is inserted.
1273 */
1262}
1263
1264static void
1265teken_subr_tab_clear(teken_t *t, unsigned int cmd)
1266{
1267
1268 switch (cmd) {
1269 case 0:

--- 20 unchanged lines hidden ---
1274}
1275
1276static void
1277teken_subr_tab_clear(teken_t *t, unsigned int cmd)
1278{
1279
1280 switch (cmd) {
1281 case 0:

--- 20 unchanged lines hidden ---