teken.c (186681) | teken.c (186729) |
---|---|
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.c 186681 2009-01-01 13:26:53Z ed $ | 26 * $FreeBSD: head/sys/dev/syscons/teken/teken.c 186729 2009-01-03 22:51:54Z ed $ |
27 */ 28 29#include <sys/cdefs.h> 30#if defined(__FreeBSD__) && defined(_KERNEL) 31#include <sys/param.h> 32#include <sys/lock.h> 33#include <sys/systm.h> 34#define teken_assert(x) MPASS(x) --- 28 unchanged lines hidden (view full) --- 63/* Private flags for teken_format_t. */ 64#define TF_REVERSE 0x08 65 66/* Private flags for t_stateflags. */ 67#define TS_FIRSTDIGIT 0x01 /* First numeric digit in escape sequence. */ 68#define TS_INSERT 0x02 /* Insert mode. */ 69#define TS_AUTOWRAP 0x04 /* Autowrap. */ 70#define TS_ORIGIN 0x08 /* Origin mode. */ | 27 */ 28 29#include <sys/cdefs.h> 30#if defined(__FreeBSD__) && defined(_KERNEL) 31#include <sys/param.h> 32#include <sys/lock.h> 33#include <sys/systm.h> 34#define teken_assert(x) MPASS(x) --- 28 unchanged lines hidden (view full) --- 63/* Private flags for teken_format_t. */ 64#define TF_REVERSE 0x08 65 66/* Private flags for t_stateflags. */ 67#define TS_FIRSTDIGIT 0x01 /* First numeric digit in escape sequence. */ 68#define TS_INSERT 0x02 /* Insert mode. */ 69#define TS_AUTOWRAP 0x04 /* Autowrap. */ 70#define TS_ORIGIN 0x08 /* Origin mode. */ |
71#ifdef TEKEN_CONS25 72#define TS_WRAPPED 0x00 /* Simple line wrapping. */ 73#else /* !TEKEN_CONS25 */ |
|
71#define TS_WRAPPED 0x10 /* Next character should be printed on col 0. */ | 74#define TS_WRAPPED 0x10 /* Next character should be printed on col 0. */ |
75#endif /* TEKEN_CONS25 */ |
|
72 73/* Character that blanks a cell. */ 74#define BLANK ' ' 75 76static teken_state_t teken_state_init; 77 78/* 79 * Wrappers for hooks. --- 307 unchanged lines hidden --- | 76 77/* Character that blanks a cell. */ 78#define BLANK ' ' 79 80static teken_state_t teken_state_init; 81 82/* 83 * Wrappers for hooks. --- 307 unchanged lines hidden --- |