Article View: news.software.readers
Article #35147Re: [SLRN] How to make a search?
From: Byrial Jensen
Date: Tue, 15 Jul 1997 00:00
Date: Tue, 15 Jul 1997 00:00
48 lines
1831 bytes
1831 bytes
Sven Guckes <guckes@math.fu-berlin.de> wrote:
>goo@ouverture.it (GO0):
>> Another little feature to add to the wish list: A little clock in the
>> right-top of the screen could be very useful :)
>
>Displaying a clock is not the purpose of a newsreader.
Right, but I made anyway a little clock to slrn because it is rather
easy. You will find the clock code in the following patch. But beware
that it only will be updated then the top status line is updated - but
most keys will cause that to happen. Users of mouse menus in the top
line will not see the clock.
- Byrial
--- misc.c.orig Tue Jul 15 00:33:27 1997
+++ misc.c Tue Jul 15 01:23:36 1997
@@ -178,6 +178,19 @@
/*}}}*/
+void show_clock ()
+{
+ time_t secs = time (NULL);
+ struct tm *now;
+
+ secs = time (NULL);
+ now = localtime (&secs);
+ SLsmg_gotorc (0, SLtt_Screen_Cols - 6);
+ slrn_set_color (MENU_COLOR);
+ SLsmg_printf (" %2d:%02d", now->tm_hour, now->tm_min);
+ slrn_set_color (0);
+}
+
void slrn_update_top_status_line (void) /*{{{*/
{
if (Slrn_Full_Screen_Update == 0) return;
@@ -189,6 +202,7 @@
Slrn_Server_Obj->sv_name);
SLsmg_erase_eol ();
slrn_set_color (0);
+ show_clock ();
}
/*}}}*/
Technical Details
Message-ID:
<slrn5slhfc.vb.byrial@ask.ask>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<slrn5s7s8l.jv.goo@artemide.connectx.it> <slrn5skhj9.niv.guckes@banach.math.fu-berlin.de>Show Full Headers
Complete Article Headers
Message-ID: <slrn5slhfc.vb.byrial@ask.ask> Subject: Re: [SLRN] How to make a search? Date: Tue, 15 Jul 1997 00:00:00 +0000 From: byrial@post3.tele.dk (Byrial Jensen) References: <slrn5s7s8l.jv.goo@artemide.connectx.it> <slrn5skhj9.niv.guckes@banach.math.fu-berlin.de> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 256889992 Newsgroups: news.software.readers