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

Diff for /src/usr.bin/less/command.c between version 1.1 and 1.2

version 1.1, 1996/09/21 05:39:42 version 1.2, 1996/09/21 06:06:38
Line 69 
Line 69 
 extern char *editproto;  extern char *editproto;
 #endif  #endif
 extern int screen_trashed;      /* The screen has been overwritten */  extern int screen_trashed;      /* The screen has been overwritten */
   extern int be_helpful;
   
   public int helpprompt;
   
 static char ungot[100];  static char ungot[100];
 static char *ungotp = NULL;  static char *ungotp = NULL;
 #if SHELL_ESCAPE  #if SHELL_ESCAPE
Line 453 
Line 456 
          * Select the proper prompt and display it.           * Select the proper prompt and display it.
          */           */
         clear_bot();          clear_bot();
         p = pr_string();          if (helpprompt) {
         if (p == NULL)  
                 putchr(':');  
         else  
         {  
                 so_enter();                  so_enter();
                 putstr(p);                  putstr("[Press 'h' for instructions.]");
                 so_exit();                  so_exit();
                   helpprompt = 0;
           } else {
                   p = pr_string();
                   if (p == NULL)
                           putchr(':');
                   else
                   {
                           so_enter();
                           putstr(p);
                           if (be_helpful)
                                   putstr(" [Press space to continue, 'q' to quit.]");
                           so_exit();
                   }
         }          }
 }  }
   
Line 1246 
Line 1258 
                         break;                          break;
   
                 default:                  default:
                         bell();                          if (be_helpful)
                                   helpprompt = 1;
                           else
                                   bell();
                         break;                          break;
                 }                  }
         }          }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2