teken_subr.h (186729) | teken_subr.h (186753) |
---|---|
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/dev/syscons/teken/teken_subr.h 186729 2009-01-03 22:51:54Z ed $ | 26 * $FreeBSD: head/sys/dev/syscons/teken/teken_subr.h 186753 2009-01-04 22:24:47Z 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 *); 33 34static inline int --- 158 unchanged lines hidden (view full) --- 193 tr.tr_end = t->t_winsize; 194 teken_funcs_fill(t, &tr, 'E', &t->t_defattr); 195} 196 197static void 198teken_subr_backspace(teken_t *t) 199{ 200 | 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 *); 33 34static inline int --- 158 unchanged lines hidden (view full) --- 193 tr.tr_end = t->t_winsize; 194 teken_funcs_fill(t, &tr, 'E', &t->t_defattr); 195} 196 197static void 198teken_subr_backspace(teken_t *t) 199{ 200 |
201#ifdef TEKEN_CONS25 202 if (t->t_cursor.tp_col == 0) { 203 if (t->t_cursor.tp_row == t->t_originreg.ts_begin) 204 return; 205 t->t_cursor.tp_row--; 206 t->t_cursor.tp_col = t->t_winsize.tp_col - 1; 207 } else { 208 t->t_cursor.tp_col--; 209 } 210#else /* !TEKEN_CONS25 */ |
|
201 if (t->t_cursor.tp_col == 0) 202 return; 203 204 t->t_cursor.tp_col--; 205 t->t_stateflags &= ~TS_WRAPPED; | 211 if (t->t_cursor.tp_col == 0) 212 return; 213 214 t->t_cursor.tp_col--; 215 t->t_stateflags &= ~TS_WRAPPED; |
216#endif /* TEKEN_CONS25 */ |
|
206 207 teken_funcs_cursor(t); 208} 209 210static void 211teken_subr_bell(teken_t *t) 212{ 213 --- 643 unchanged lines hidden (view full) --- 857} 858 859static void 860teken_subr_reset_to_initial_state(teken_t *t) 861{ 862 863 teken_subr_do_reset(t); 864 teken_subr_erase_display(t, 2); | 217 218 teken_funcs_cursor(t); 219} 220 221static void 222teken_subr_bell(teken_t *t) 223{ 224 --- 643 unchanged lines hidden (view full) --- 868} 869 870static void 871teken_subr_reset_to_initial_state(teken_t *t) 872{ 873 874 teken_subr_do_reset(t); 875 teken_subr_erase_display(t, 2); |
876 teken_funcs_param(t, TP_SHOWCURSOR, 1); |
|
865 teken_funcs_cursor(t); 866} 867 868static void 869teken_subr_restore_cursor(teken_t *t) 870{ 871 872 t->t_cursor = t->t_saved_cursor; --- 260 unchanged lines hidden --- | 877 teken_funcs_cursor(t); 878} 879 880static void 881teken_subr_restore_cursor(teken_t *t) 882{ 883 884 t->t_cursor = t->t_saved_cursor; --- 260 unchanged lines hidden --- |