Changeset 8232149 for owl.c


Ignore:
Timestamp:
Dec 31, 2004, 2:29:21 PM (19 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
667a1b6
Parents:
1ef65fb
Message:
Turn off istrip.
Restore initial terminal settings at problem exit.
Version set to 2.1.10 in prep. for release.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.c

    r74037d9 r8232149  
    4646#include <sys/param.h>
    4747#include <sys/types.h>
     48#include <termios.h>
    4849#include <sys/stat.h>
    4950#include "owl.h"
     
    7778  struct tm *today;
    7879  char *dir;
     80  struct termios tio;
    7981#ifdef HAVE_LIBZEPHYR
    8082  ZNotice_t notice;
     
    154156  sigaction(SIGTERM, &sigact, NULL);
    155157  sigaction(SIGHUP, &sigact, NULL);
     158
     159  /* save initial terminal settings */
     160  tcgetattr(0, owl_global_get_startup_tio(&g));
     161
     162  /* turn ISTRIP off */
     163  tcgetattr(0, &tio);
     164  tio.c_iflag &= ~ISTRIP;
     165  tcsetattr(0, TCSAFLUSH, &tio);
    156166
    157167  /* screen init */
Note: See TracChangeset for help on using the changeset viewer.