cl_screen.c (19305) | cl_screen.c (86201) |
---|---|
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. | 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 $ |
|
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)) { | 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; |
|
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)) { | 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; |
|
489 msgq(sp, M_SYSERR, "tcsetattr"); 490 return (1); 491 } 492 return (0); 493} 494 495/* 496 * cl_ex_end -- --- 85 unchanged lines hidden --- | 495 msgq(sp, M_SYSERR, "tcsetattr"); 496 return (1); 497 } 498 return (0); 499} 500 501/* 502 * cl_ex_end -- --- 85 unchanged lines hidden --- |