Deleted Added
full compact
terminal.c (157188) terminal.c (157195)
1/* $FreeBSD: head/contrib/libreadline/terminal.c 157188 2006-03-27 23:11:32Z ache $ */
1/* $FreeBSD: head/contrib/libreadline/terminal.c 157195 2006-03-27 23:53:05Z ache $ */
2/* terminal.c -- controlling the terminal with termcap. */
3
4/* Copyright (C) 1996-2005 Free Software Foundation, Inc.
5
6 This file is part of the GNU Readline Library, a library for
7 reading lines of text with interactive input and history editing.
8
9 The GNU Readline Library is free software; you can redistribute it

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

118
119/* How to go up a line. */
120char *_rl_term_up;
121
122/* A visible bell; char if the terminal can be made to flash the screen. */
123static char *_rl_visible_bell;
124
125/* Non-zero means the terminal can auto-wrap lines. */
2/* terminal.c -- controlling the terminal with termcap. */
3
4/* Copyright (C) 1996-2005 Free Software Foundation, Inc.
5
6 This file is part of the GNU Readline Library, a library for
7 reading lines of text with interactive input and history editing.
8
9 The GNU Readline Library is free software; you can redistribute it

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

118
119/* How to go up a line. */
120char *_rl_term_up;
121
122/* A visible bell; char if the terminal can be made to flash the screen. */
123static char *_rl_visible_bell;
124
125/* Non-zero means the terminal can auto-wrap lines. */
126int _rl_term_autowrap;
126int _rl_term_autowrap = -1;
127
128/* Non-zero means that this terminal has a meta key. */
129static int term_has_meta;
130
131/* The sequences to write to turn on and off the meta key, if this
132 terminal has one. */
133static char *_rl_term_mm;
134static char *_rl_term_mo;

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

270
271 _rl_screenchars = _rl_screenwidth * _rl_screenheight;
272}
273
274void
275_rl_set_screen_size (rows, cols)
276 int rows, cols;
277{
127
128/* Non-zero means that this terminal has a meta key. */
129static int term_has_meta;
130
131/* The sequences to write to turn on and off the meta key, if this
132 terminal has one. */
133static char *_rl_term_mm;
134static char *_rl_term_mo;

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

270
271 _rl_screenchars = _rl_screenwidth * _rl_screenheight;
272}
273
274void
275_rl_set_screen_size (rows, cols)
276 int rows, cols;
277{
278 if (_rl_term_autowrap == -1)
279 _rl_init_terminal_io (rl_terminal_name);
280
278 if (rows > 0)
279 _rl_screenheight = rows;
280 if (cols > 0)
281 {
282 _rl_screenwidth = cols;
283 if (_rl_term_autowrap == 0)
284 _rl_screenwidth--;
285 }

--- 414 unchanged lines hidden ---
281 if (rows > 0)
282 _rl_screenheight = rows;
283 if (cols > 0)
284 {
285 _rl_screenwidth = cols;
286 if (_rl_term_autowrap == 0)
287 _rl_screenwidth--;
288 }

--- 414 unchanged lines hidden ---