Changeset 8232149


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.
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r74037d9 r8232149  
    11$Id$
    22
    3 2.1.10-pre-2
     32.1.10
    44        Fix a new problem finding libdes425
    5         Don't crash on super-long hostnames [BZ 52]
     5        Don't crash on very long hostnames [BZ 52]
    66        In 'sub' command, create .zephyr.subs if it doesn't exist [BZ 15]
    7         A fix for certain resize crashes (part from alexmv) [BZ 55]
     7        A fix for certain resize crashes (partly from alexmv) [BZ 55]
     8        Turn off ISTRIP (gildea)
    89       
    9102.1.9
  • functions.c

    rca9142e r8232149  
    971971  }
    972972
    973   /* final clean up */
     973  /* done with curses */
    974974  endwin();
     975
     976  /* restore terminal settings */
     977  tcsetattr(0, TCSAFLUSH, owl_global_get_startup_tio(&g));
     978
    975979  owl_function_debugmsg("Quitting Owl");
    976980  exit(0);
  • global.c

    r74037d9 r8232149  
    886886  return(&(g->zbuddies));
    887887}
     888
     889struct termios *owl_global_get_startup_tio(owl_global *g)
     890{
     891  return(&(g->startup_tio));
     892}
  • 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 */
  • owl.h

    r74037d9 r8232149  
    4848#include <time.h>
    4949#include <signal.h>
     50#include <termios.h>
    5051#include <libfaim/aim.h>
    5152#include "config.h"
     
    5960static const char owl_h_fileIdent[] = "$Id$";
    6061
    61 #define OWL_VERSION         2.1.10-pre-2
    62 #define OWL_VERSION_STRING "2.1.10-pre-2"
     62#define OWL_VERSION         2.1.10
     63#define OWL_VERSION_STRING "2.1.10"
    6364
    6465/* Feature that is being tested to redirect stderr through a pipe.
     
    561562  owl_zbuddylist zbuddies;
    562563  owl_timer zephyr_buddycheck_timer;
     564  struct termios startup_tio;
    563565} owl_global;
    564566
Note: See TracChangeset for help on using the changeset viewer.