[BACK]Return to screen.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / top

Diff for /src/usr.bin/top/screen.c between version 1.11 and 1.12

version 1.11, 2003/06/13 21:52:25 version 1.12, 2003/06/16 01:09:02
Line 51 
Line 51 
 #include "screen.h"  #include "screen.h"
 #include "boolean.h"  #include "boolean.h"
   
 extern char    *__progname;  int     overstrike, screen_length, screen_width;
   char    ch_erase, ch_kill, smart_terminal, PC;
   char    string_buffer[1024], home[15], lower_left[15];
   char    *clear_line, *clear_scr, *clear_to_end;
   char    *cursor_motion, *start_standout, *end_standout;
   char    *terminal_init, *terminal_end;
   short   ospeed;
   
 int             overstrike;  static struct termios old_settings, new_settings;
 int             screen_length;  
 int             screen_width;  
 char            ch_erase;  
 char            ch_kill;  
 char            smart_terminal;  
 char            PC;  
 char            string_buffer[1024];  
 char            home[15];  
 char            lower_left[15];  
 char           *clear_line;  
 char           *clear_scr;  
 char           *clear_to_end;  
 char           *cursor_motion;  
 char           *start_standout;  
 char           *end_standout;  
 char           *terminal_init;  
 char           *terminal_end;  
 short           ospeed;  
   
 static struct termios old_settings;  static char     is_a_terminal = No;
 static struct termios new_settings;  
   
 static char     is_a_terminal = No;  
   
 void  void
 init_termcap(int interactive)  init_termcap(int interactive)
 {  {
Line 109 
Line 94 
         /* now get the termcap entry */          /* now get the termcap entry */
         if ((status = tgetent(NULL, term_name)) != 1) {          if ((status = tgetent(NULL, term_name)) != 1) {
                 if (status == -1)                  if (status == -1)
                         fprintf(stderr, "%s: can't open termcap file\n", __progname);                          warnx("can't open termcap file");
                 else                  else
                         fprintf(stderr, "%s: no termcap entry for a `%s' terminal\n",                          warnx("no termcap entry for a `%s' terminal", term_name);
                             __progname, term_name);  
   
                 /* pretend it's dumb and proceed */                  /* pretend it's dumb and proceed */
                 smart_terminal = No;                  smart_terminal = No;

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12