Ignore:
Timestamp:
Mar 12, 2006, 6:02:46 PM (19 years ago)
Author:
bird
Message:

applied OS/2 patches (manually).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/texinfo/info/terminal.c

    r2617 r2619  
    2424#include "terminal.h"
    2525#include "termdep.h"
     26#ifdef __EMX__
     27#  include <stdlib.h>
     28#  include "pc.h"
     29#endif /* __EMX__ */
    2630
    2731#include <sys/types.h>
     
    135139  if (term_keypad_on)
    136140      send_to_terminal (term_keypad_on);
    137  
     141
    138142  if (!term_begin_use || !*term_begin_use)
    139143    return;
    140144
    141145#ifdef SIGWINCH
    142   sigsave = signal (SIGWINCH, SIG_IGN); 
     146  sigsave = signal (SIGWINCH, SIG_IGN);
    143147#endif
    144148
     
    166170  if (term_keypad_off)
    167171      send_to_terminal (term_keypad_off);
    168  
     172
    169173  if (!term_end_use || !*term_end_use)
    170174    return;
     
    460464      screenwidth = screenheight = 0;
    461465
     466#ifdef __EMX__
     467      {
     468        int s[2];
     469        _scrsize (s);
     470        screenwidth = s[0];
     471        screenheight = s[1];
     472        if (getenv ("WINDOWID"))
     473          {
     474             FILE *fd = popen ("scrsize","rt");
     475             if (fd)
     476               {
     477                 fscanf (fd, "%i %i", &screenwidth, &screenheight);
     478                 pclose (fd);
     479               }
     480          }
     481      }
     482#endif /* __EMX__ */
     483
    462484#if defined (TIOCGWINSZ)
    463485      {
     
    705727
    706728  tty = fileno (stdin);
     729
     730#ifdef __EMX__
     731  if (is_xfree86 == XFREE86_NO)
     732    pc_init ();
     733  else
     734  {
     735#endif /* __EMX__ */
    707736
    708737#if defined (HAVE_TERMIOS_H)
     
    827856  ioctl (tty, TIOCSETN, &ttybuff);
    828857#endif /* !HAVE_TERMIOS_H && !HAVE_TERMIO_H */
     858#ifdef __EMX__
     859  }
     860#endif /* __EMX__ */
    829861}
    830862
     
    843875
    844876  tty = fileno (stdin);
     877
     878#ifdef __EMX__
     879  if ( is_xfree86 == XFREE86_NO )
     880    pc_exit ();
     881  else
     882  {
     883#endif /* __EMX__ */
    845884
    846885#if defined (HAVE_TERMIOS_H)
     
    868907#  endif /* !HAVE_TERMIO_H */
    869908#endif /* !HAVE_TERMIOS_H */
     909#ifdef __EMX__
     910  }
     911#endif /* __EMX__ */
    870912  terminal_end_using_terminal ();
    871913}
Note: See TracChangeset for help on using the changeset viewer.