Deleted Added
full compact
subr_terminal.c (257252) subr_terminal.c (257431)
1/*-
2 * Copyright (c) 2009 The FreeBSD Foundation
3 * All rights reserved.
4 *
5 * This software was developed by Ed Schouten under sponsorship from the
6 * FreeBSD Foundation.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2009 The FreeBSD Foundation
3 * All rights reserved.
4 *
5 * This software was developed by Ed Schouten under sponsorship from the
6 * FreeBSD Foundation.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: user/ed/newcons/sys/kern/subr_terminal.c 257252 2013-10-28 14:00:06Z ray $");
31__FBSDID("$FreeBSD: user/ed/newcons/sys/kern/subr_terminal.c 257431 2013-10-31 09:44:48Z ray $");
32
33#include <sys/param.h>
34#include <sys/cons.h>
35#include <sys/consio.h>
36#include <sys/kernel.h>
37#include <sys/lock.h>
38#include <sys/malloc.h>
39#include <sys/mutex.h>

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

196 tm->tm_winsize = *size;
197
198 r.tr_begin.tp_row = r.tr_begin.tp_col = 0;
199 r.tr_end.tp_row = size->ws_row;
200 r.tr_end.tp_col = size->ws_col;
201
202 TERMINAL_LOCK(tm);
203 if (blank == 0)
32
33#include <sys/param.h>
34#include <sys/cons.h>
35#include <sys/consio.h>
36#include <sys/kernel.h>
37#include <sys/lock.h>
38#include <sys/malloc.h>
39#include <sys/mutex.h>

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

196 tm->tm_winsize = *size;
197
198 r.tr_begin.tp_row = r.tr_begin.tp_col = 0;
199 r.tr_end.tp_row = size->ws_row;
200 r.tr_end.tp_col = size->ws_col;
201
202 TERMINAL_LOCK(tm);
203 if (blank == 0)
204 /*
205 * Assigned directly, to avoid terminal reset in the
206 * teken_set_winsize.
207 */
208 tm->tm_emulator.t_winsize = r.tr_end;
204 teken_set_winsize_noreset(&tm->tm_emulator, &r.tr_end);
209 else
210 teken_set_winsize(&tm->tm_emulator, &r.tr_end);
211 TERMINAL_UNLOCK(tm);
212
213 if (blank != 0)
214 tm->tm_class->tc_fill(tm, &r, TCHAR_CREATE((teken_char_t)' ',
215 &default_message));
216

--- 390 unchanged lines hidden ---
205 else
206 teken_set_winsize(&tm->tm_emulator, &r.tr_end);
207 TERMINAL_UNLOCK(tm);
208
209 if (blank != 0)
210 tm->tm_class->tc_fill(tm, &r, TCHAR_CREATE((teken_char_t)' ',
211 &default_message));
212

--- 390 unchanged lines hidden ---