Changeset adee9cc for owl.c


Ignore:
Timestamp:
May 4, 2009, 9:55:11 PM (12 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
d6bd3f1
Parents:
790ab12
git-author:
Nelson Elhage <nelhage@mit.edu> (05/03/09 15:31:50)
git-committer:
Nelson Elhage <nelhage@mit.edu> (05/04/09 21:55:11)
Message:
Enable signals, and add an interrupted flag.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.c

    r5657d53 radee9cc  
    137137  sigaction(SIGHUP, &sigact, NULL);
    138138
     139  sigact.sa_sigaction=sigint_handler;
     140  sigaction(SIGINT, &sigact, NULL);
     141
    139142  /* save initial terminal settings */
    140143  tcgetattr(0, owl_global_get_startup_tio(&g));
     
    156159  use_default_colors();
    157160#endif
    158   raw();
     161  cbreak();
    159162  noecho();
    160163
     
    675678}
    676679
     680void sigint_handler(int sig, siginfo_t *si, void *data)
     681{
     682  owl_global_set_interrupted(&g);
     683}
     684
    677685void usage()
    678686{
Note: See TracChangeset for help on using the changeset viewer.