Changeset 2619 for trunk/texinfo/info/terminal.c
- Timestamp:
- Mar 12, 2006, 6:02:46 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/texinfo/info/terminal.c
r2617 r2619 24 24 #include "terminal.h" 25 25 #include "termdep.h" 26 #ifdef __EMX__ 27 # include <stdlib.h> 28 # include "pc.h" 29 #endif /* __EMX__ */ 26 30 27 31 #include <sys/types.h> … … 135 139 if (term_keypad_on) 136 140 send_to_terminal (term_keypad_on); 137 141 138 142 if (!term_begin_use || !*term_begin_use) 139 143 return; 140 144 141 145 #ifdef SIGWINCH 142 sigsave = signal (SIGWINCH, SIG_IGN); 146 sigsave = signal (SIGWINCH, SIG_IGN); 143 147 #endif 144 148 … … 166 170 if (term_keypad_off) 167 171 send_to_terminal (term_keypad_off); 168 172 169 173 if (!term_end_use || !*term_end_use) 170 174 return; … … 460 464 screenwidth = screenheight = 0; 461 465 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 462 484 #if defined (TIOCGWINSZ) 463 485 { … … 705 727 706 728 tty = fileno (stdin); 729 730 #ifdef __EMX__ 731 if (is_xfree86 == XFREE86_NO) 732 pc_init (); 733 else 734 { 735 #endif /* __EMX__ */ 707 736 708 737 #if defined (HAVE_TERMIOS_H) … … 827 856 ioctl (tty, TIOCSETN, &ttybuff); 828 857 #endif /* !HAVE_TERMIOS_H && !HAVE_TERMIO_H */ 858 #ifdef __EMX__ 859 } 860 #endif /* __EMX__ */ 829 861 } 830 862 … … 843 875 844 876 tty = fileno (stdin); 877 878 #ifdef __EMX__ 879 if ( is_xfree86 == XFREE86_NO ) 880 pc_exit (); 881 else 882 { 883 #endif /* __EMX__ */ 845 884 846 885 #if defined (HAVE_TERMIOS_H) … … 868 907 # endif /* !HAVE_TERMIO_H */ 869 908 #endif /* !HAVE_TERMIOS_H */ 909 #ifdef __EMX__ 910 } 911 #endif /* __EMX__ */ 870 912 terminal_end_using_terminal (); 871 913 }
Note:
See TracChangeset
for help on using the changeset viewer.