Deleted Added
sdiff udiff text old ( 19305 ) new ( 86201 )
full compact
1/*-
2 * Copyright (c) 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 * Copyright (c) 1993, 1994, 1995, 1996
5 * Keith Bostic. All rights reserved.
6 *
7 * See the LICENSE file for redistribution information.
8 *
9 * $FreeBSD: head/contrib/nvi/cl/cl_screen.c 86201 2001-11-09 02:23:05Z rwatson $
10 */
11
12#include "config.h"
13
14#ifndef lint
15static const char sccsid[] = "@(#)cl_screen.c 10.49 (Berkeley) 9/24/96";
16#endif /* not lint */
17

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

365#endif
366
367 /* Initialize terminal based information. */
368 if (cl_term_init(sp))
369 goto err;
370
371fast: /* Set the terminal modes. */
372 if (tcsetattr(STDIN_FILENO, TCSASOFT | TCSADRAIN, &clp->vi_enter)) {
373 if (errno == EINTR)
374 goto fast;
375 msgq(sp, M_SYSERR, "tcsetattr");
376err: (void)cl_vi_end(sp->gp);
377 return (1);
378 }
379 return (0);
380}
381
382/*

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

485#endif
486 clp->ex_enter.c_iflag |= ICRNL;
487 clp->ex_enter.c_oflag |= OPOST;
488#ifdef ONLCR
489 clp->ex_enter.c_oflag |= ONLCR;
490#endif
491
492fast: if (tcsetattr(STDIN_FILENO, TCSADRAIN | TCSASOFT, &clp->ex_enter)) {
493 if (errno == EINTR)
494 goto fast;
495 msgq(sp, M_SYSERR, "tcsetattr");
496 return (1);
497 }
498 return (0);
499}
500
501/*
502 * cl_ex_end --

--- 85 unchanged lines hidden ---