teken.h (189617) | teken.h (193184) |
---|---|
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.h 189617 2009-03-10 11:28:54Z ed $ | 26 * $FreeBSD: head/sys/dev/syscons/teken/teken.h 193184 2009-05-31 19:35:41Z ed $ |
27 */ 28 29#ifndef _TEKEN_H_ 30#define _TEKEN_H_ 31 32/* 33 * libteken: terminal emulation library. 34 * --- 58 unchanged lines hidden (view full) --- 93 94typedef void tf_bell_t(void *); 95typedef void tf_cursor_t(void *, const teken_pos_t *); 96typedef void tf_putchar_t(void *, const teken_pos_t *, teken_char_t, 97 const teken_attr_t *); 98typedef void tf_fill_t(void *, const teken_rect_t *, teken_char_t, 99 const teken_attr_t *); 100typedef void tf_copy_t(void *, const teken_rect_t *, const teken_pos_t *); | 27 */ 28 29#ifndef _TEKEN_H_ 30#define _TEKEN_H_ 31 32/* 33 * libteken: terminal emulation library. 34 * --- 58 unchanged lines hidden (view full) --- 93 94typedef void tf_bell_t(void *); 95typedef void tf_cursor_t(void *, const teken_pos_t *); 96typedef void tf_putchar_t(void *, const teken_pos_t *, teken_char_t, 97 const teken_attr_t *); 98typedef void tf_fill_t(void *, const teken_rect_t *, teken_char_t, 99 const teken_attr_t *); 100typedef void tf_copy_t(void *, const teken_rect_t *, const teken_pos_t *); |
101typedef void tf_param_t(void *, int, int); | 101typedef void tf_param_t(void *, int, unsigned int); |
102#define TP_SHOWCURSOR 0 103#define TP_CURSORKEYS 1 104#define TP_KEYPADAPP 2 105#define TP_AUTOREPEAT 3 106#define TP_SWITCHVT 4 107#define TP_132COLS 5 | 102#define TP_SHOWCURSOR 0 103#define TP_CURSORKEYS 1 104#define TP_KEYPADAPP 2 105#define TP_AUTOREPEAT 3 106#define TP_SWITCHVT 4 107#define TP_132COLS 5 |
108#define TP_SETBELLPD 6 109#define TP_SETBELLPD_PITCH(pd) ((pd) >> 16) 110#define TP_SETBELLPD_DURATION(pd) ((pd) & 0xffff) |
|
108typedef void tf_respond_t(void *, const void *, size_t); 109 110typedef struct { 111 tf_bell_t *tf_bell; 112 tf_cursor_t *tf_cursor; 113 tf_putchar_t *tf_putchar; 114 tf_fill_t *tf_fill; 115 tf_copy_t *tf_copy; --- 66 unchanged lines hidden --- | 111typedef void tf_respond_t(void *, const void *, size_t); 112 113typedef struct { 114 tf_bell_t *tf_bell; 115 tf_cursor_t *tf_cursor; 116 tf_putchar_t *tf_putchar; 117 tf_fill_t *tf_fill; 118 tf_copy_t *tf_copy; --- 66 unchanged lines hidden --- |