term.h (225736) | term.h (237738) |
---|---|
1/*- 2 * Copyright (c) 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Christos Zoulas of Cornell University. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 17 unchanged lines hidden (view full) --- 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * @(#)term.h 8.1 (Berkeley) 6/4/93 33 * $NetBSD: term.h,v 1.18 2006/11/24 00:01:17 christos Exp $ | 1/*- 2 * Copyright (c) 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Christos Zoulas of Cornell University. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 17 unchanged lines hidden (view full) --- 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * @(#)term.h 8.1 (Berkeley) 6/4/93 33 * $NetBSD: term.h,v 1.18 2006/11/24 00:01:17 christos Exp $ |
34 * $FreeBSD: stable/9/lib/libedit/term.h 212235 2010-09-05 16:12:10Z jilles $ | 34 * $FreeBSD: stable/9/lib/libedit/term.h 237738 2012-06-29 03:01:38Z pfg $ |
35 */ 36 37/* 38 * el.term.h: Termcap header 39 */ 40#ifndef _h_el_term 41#define _h_el_term 42 --- 37 unchanged lines hidden (view full) --- 80#define A_K_HO 4 81#define A_K_EN 5 82#define A_K_DE 6 83#define A_K_NKEYS 7 84 85protected void term_move_to_line(EditLine *, int); 86protected void term_move_to_char(EditLine *, int); 87protected void term_clear_EOL(EditLine *, int); | 35 */ 36 37/* 38 * el.term.h: Termcap header 39 */ 40#ifndef _h_el_term 41#define _h_el_term 42 --- 37 unchanged lines hidden (view full) --- 80#define A_K_HO 4 81#define A_K_EN 5 82#define A_K_DE 6 83#define A_K_NKEYS 7 84 85protected void term_move_to_line(EditLine *, int); 86protected void term_move_to_char(EditLine *, int); 87protected void term_clear_EOL(EditLine *, int); |
88protected void term_overwrite(EditLine *, const char *, int); | 88protected void term_overwrite(EditLine *, const char *, size_t); |
89protected void term_insertwrite(EditLine *, char *, int); 90protected void term_deletechars(EditLine *, int); 91protected void term_clear_screen(EditLine *); 92protected void term_beep(EditLine *); 93protected int term_change_size(EditLine *, int, int); 94protected int term_get_size(EditLine *, int *, int *); 95protected int term_init(EditLine *); 96protected void term_bind_arrow(EditLine *); 97protected void term_print_arrow(EditLine *, const char *); 98protected int term_clear_arrow(EditLine *, const char *); 99protected int term_set_arrow(EditLine *, const char *, key_value_t *, int); 100protected void term_end(EditLine *); 101protected void term_get(EditLine *, const char **); 102protected int term_set(EditLine *, const char *); 103protected int term_settc(EditLine *, int, const char **); 104protected int term_gettc(EditLine *, int, char **); 105protected int term_telltc(EditLine *, int, const char **); 106protected int term_echotc(EditLine *, int, const char **); 107protected void term_writec(EditLine *, int); | 89protected void term_insertwrite(EditLine *, char *, int); 90protected void term_deletechars(EditLine *, int); 91protected void term_clear_screen(EditLine *); 92protected void term_beep(EditLine *); 93protected int term_change_size(EditLine *, int, int); 94protected int term_get_size(EditLine *, int *, int *); 95protected int term_init(EditLine *); 96protected void term_bind_arrow(EditLine *); 97protected void term_print_arrow(EditLine *, const char *); 98protected int term_clear_arrow(EditLine *, const char *); 99protected int term_set_arrow(EditLine *, const char *, key_value_t *, int); 100protected void term_end(EditLine *); 101protected void term_get(EditLine *, const char **); 102protected int term_set(EditLine *, const char *); 103protected int term_settc(EditLine *, int, const char **); 104protected int term_gettc(EditLine *, int, char **); 105protected int term_telltc(EditLine *, int, const char **); 106protected int term_echotc(EditLine *, int, const char **); 107protected void term_writec(EditLine *, int); |
108protected int term__putc(int); 109protected void term__flush(void); | 108protected int term__putc(EditLine *, int); 109protected void term__flush(EditLine *); |
110 111/* 112 * Easy access macros 113 */ 114#define EL_FLAGS (el)->el_term.t_flags 115 116#define EL_CAN_INSERT (EL_FLAGS & TERM_CAN_INSERT) 117#define EL_CAN_DELETE (EL_FLAGS & TERM_CAN_DELETE) 118#define EL_CAN_CEOL (EL_FLAGS & TERM_CAN_CEOL) 119#define EL_CAN_TAB (EL_FLAGS & TERM_CAN_TAB) 120#define EL_CAN_ME (EL_FLAGS & TERM_CAN_ME) 121#define EL_CAN_UP (EL_FLAGS & TERM_CAN_UP) 122#define EL_HAS_META (EL_FLAGS & TERM_HAS_META) 123#define EL_HAS_AUTO_MARGINS (EL_FLAGS & TERM_HAS_AUTO_MARGINS) 124#define EL_HAS_MAGIC_MARGINS (EL_FLAGS & TERM_HAS_MAGIC_MARGINS) 125 126#endif /* _h_el_term */ | 110 111/* 112 * Easy access macros 113 */ 114#define EL_FLAGS (el)->el_term.t_flags 115 116#define EL_CAN_INSERT (EL_FLAGS & TERM_CAN_INSERT) 117#define EL_CAN_DELETE (EL_FLAGS & TERM_CAN_DELETE) 118#define EL_CAN_CEOL (EL_FLAGS & TERM_CAN_CEOL) 119#define EL_CAN_TAB (EL_FLAGS & TERM_CAN_TAB) 120#define EL_CAN_ME (EL_FLAGS & TERM_CAN_ME) 121#define EL_CAN_UP (EL_FLAGS & TERM_CAN_UP) 122#define EL_HAS_META (EL_FLAGS & TERM_HAS_META) 123#define EL_HAS_AUTO_MARGINS (EL_FLAGS & TERM_HAS_AUTO_MARGINS) 124#define EL_HAS_MAGIC_MARGINS (EL_FLAGS & TERM_HAS_MAGIC_MARGINS) 125 126#endif /* _h_el_term */ |