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
10#include "config.h"
11
12#ifndef lint
13static const char sccsid[] = "@(#)cl_screen.c 10.49 (Berkeley) 9/24/96";
14#endif /* not lint */
15

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

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

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

481#endif
482 clp->ex_enter.c_iflag |= ICRNL;
483 clp->ex_enter.c_oflag |= OPOST;
484#ifdef ONLCR
485 clp->ex_enter.c_oflag |= ONLCR;
486#endif
487
488fast: if (tcsetattr(STDIN_FILENO, TCSADRAIN | TCSASOFT, &clp->ex_enter)) {
489 msgq(sp, M_SYSERR, "tcsetattr");
490 return (1);
491 }
492 return (0);
493}
494
495/*
496 * cl_ex_end --

--- 85 unchanged lines hidden ---