[BACK]Return to main.c CVS log [TXT][DIR] Up to [local] / prex-old / usr / bin / cmdbox

Diff for /prex-old/usr/bin/cmdbox/main.c between version 1.1.1.1 and 1.1.1.1.2.1

version 1.1.1.1, 2008/06/03 10:38:46 version 1.1.1.1.2.1, 2008/08/13 17:12:33
Line 29 
Line 29 
   
 #include <prex/prex.h>  #include <prex/prex.h>
 #include <sys/utsname.h>  #include <sys/utsname.h>
 #include <sys/ioctl.h>  
   
 #include <limits.h>  #include <limits.h>
 #include <ctype.h>  #include <ctype.h>
Line 38 
Line 37 
 #include <stdlib.h>  #include <stdlib.h>
 #include <stdio.h>  #include <stdio.h>
 #include <libgen.h>  #include <libgen.h>
   #include <termios.h>
   
 #include "cmdbox.h"  #include "cmdbox.h"
   
Line 54 
Line 54 
   
         /* Get screen size */          /* Get screen size */
         maxcol = 80;          maxcol = 80;
         if (ioctl(fileno(stderr), TIOCGWINSZ, (u_long)&ws) == 0)          if (ioctl(fileno(stderr), TIOCGWINSZ, &ws) == 0)
                 maxcol = (int)ws.ws_col;                  maxcol = (int)ws.ws_col;
         if (maxcol < 80)          if (maxcol < 80)
                 maxcol -= 15;                  maxcol -= 15;

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.1.2.1

CVSweb