Diff for /src/usr.sbin/vidcontrol/vidcontrol.c between versions 1.4 and 1.5

version 1.4, 2004/04/25 06:35:32 version 1.5, 2004/04/25 18:18:43
Line 99  struct video_info new_mode_info; Line 99  struct video_info new_mode_info;
  *   font maps   *   font maps
  */   */
   
void init()void
 init()
 {  {
     if (ioctl(0, VT_GETACTIVE, &cur_info.active_vty) == -1)      if (ioctl(0, VT_GETACTIVE, &cur_info.active_vty) == -1)
         errc(1, errno, "getting active vty");          errc(1, errno, "getting active vty");
Line 134  void init() Line 135  void init()
  * NOTE: please also read the comments of init().   * NOTE: please also read the comments of init().
  */   */
   
void revert()void
 revert()
 {  {
     int size[3];      int size[3];
   
Line 172  static void Line 174  static void
 usage(void)  usage(void)
 {  {
     fprintf(stderr,      fprintf(stderr,
            "usage: vidcontrol [-CdLPpx] [-b color] [-c appearance] [-f [size] file]\n"            "usage: vidcontrol [-CdLPpx] [-b color] [-c appearance] [-f [size]"
            "                  [-g geometry] [-h size] [-i adapter | mode] [-l screen_map]\n"            " file]\n"
            "                  [-M char] [-m on | off] [-r foreground background]\n"            "                  [-g geometry] [-h size] [-i adapter | mode] [-l"
             " screen_map]\n"
             "                  [-M char] [-m on | off] [-r foreground"
             " background]\n"
             "                  [-S on | off] [-s number] [-t N | off] [mode]\n"              "                  [-S on | off] [-s number] [-t N | off] [mode]\n"
             "                  [foreground [background]] [show]\n");              "                  [foreground [background]] [show]\n");
   
Line 317  print_scrnmap(void) Line 322  print_scrnmap(void)
         if (i > 0 && i % 16 == 0)          if (i > 0 && i % 16 == 0)
             fprintf(stdout, "\n");              fprintf(stdout, "\n");
   
        if (hex)        if (hex != NULL)
             fprintf(stdout, " %02x", map[i]);              fprintf(stdout, " %02x", map[i]);
         else          else
             fprintf(stdout, " %03d", map[i]);              fprintf(stdout, " %03d", map[i]);
Line 726  get_reverse_colors(int argc, char **argv Line 731  get_reverse_colors(int argc, char **argv
  * Set normal and reverse foreground and background colors.   * Set normal and reverse foreground and background colors.
  */   */
   
void set_colors()void
 set_colors()
 {  {
     fprintf(stderr, "[=%dF", normal_fore_color);      fprintf(stderr, "[=%dF", normal_fore_color);
     fprintf(stderr, "[=%dG", normal_back_color);      fprintf(stderr, "[=%dG", normal_back_color);

Removed from v.1.4  
changed lines
  Added in v.1.5