URI:
       add an important things ;) - tty-clock - port of tty-clock to OpenBSD, with pledge/unveil added as goodie.
  HTML git clone https://git.drkhsh.at/tty-clock.git
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit c7afe06e21e207417a4b9f110ddadad1f13683ba
   DIR parent 79e43bfa9d27ee7ef085b49866a48c1da018cb1e
  HTML Author: martin <xorg62@gmail.com>
       Date:   Fri, 13 Jun 2008 00:53:02 +0200
       
       add an important things ;)
       
       Diffstat:
         M clock.c                             |      34 ++++++++++++++++----------------
       
       1 file changed, 17 insertions(+), 17 deletions(-)
       ---
   DIR diff --git a/clock.c b/clock.c
       @@ -95,8 +95,6 @@ start(void) {
                init_pair(2, bg, bg);
                init_pair(3,COLOR_GREEN, bg);
                curs_set(0);
       -        maxcol = getmaxy(stdscr);
       -         maxlin = getmaxx(stdscr);
        }
        
        /* **************************** */
       @@ -313,12 +311,14 @@ get_time(void) {
        
        void 
        run(void) {
       -         get_time();
       -         arrange_clock(hour[0], hour[1],
       +        get_time();
       +        arrange_clock(hour[0], hour[1],
                                                min[0], min[1],
                                                sec[0], sec[1]);
       -         refresh();
       -         halfdelay(1);
       +        maxcol = getmaxy(stdscr);
       +        maxlin = getmaxx(stdscr);
       +        refresh();
       +        halfdelay(1);
        }
        
        /* ************ */
       @@ -372,25 +372,25 @@ main(int argc,char **argv) {
                                         SCHANGE = 0;
                                         enable_sec = 1;
                                         break;
       -                case 't':
       -                        enable_tw = 1;
       -                        break;
       -          }
       -  }
       +                        case 't':
       +                                enable_tw = 1;
       +                                break;
       +                        }
       +                }
        
                 start();
        
        /* first time init */         
        
       - run();
       +        run();
        
         /* endless loop */
        
       - while(1) {
       -          usleep(10000);
       -          check_key();
       -          run();
       - }
       +        while(1) {
       +                usleep(10000);
       +                check_key();
       +                run();
       +        }
                 endwin();
                 return 0;
        }