Thread View: news.software.readers
5 messages
5 total messages
Started by Tomasz Sienicki | tsca
Tue, 01 Jun 1999 00:00
[slrn] upper status line
Author: Tomasz Sienicki | tsca
Date: Tue, 01 Jun 1999 00:00
Date: Tue, 01 Jun 1999 00:00
14 lines
1247 bytes
1247 bytes
JED has a nice command: set_status_line
I miss a similar feature in slrn. Instead of wasting space for
" ** Press '?' for help, 'q' to quit. ** " I'd like to see a
clock there -- a useful thing when reading news.
--
tsca life is short: take risks *
Tomasz Sienicki <tsca@cryogen.com> if you win, you'll be happy *
if you lose, you'll be wise *
--- [ phevbfvgl xvyyrq gur png ] --------------------------- (anonymous) *
Re: [slrn] upper status line
Author: Dawn Owens-Nicholson
Date: Fri, 04 Jun 1999 00:00
Date: Fri, 04 Jun 1999 00:00
10 lines
1068 bytes
1068 bytes
Tomasz Sienicki | tsca wrote: > I'd like to see a clock there -- a useful thing when reading news. I'd prefer to not see this in slrn. A macro to do this would be fine by me (doing it well would require a separate process or thread), that way everyone doesn't have to have that in their slrn (or #ifdef it out). Otherwise, there are other options--a free clock application running in a window or a wall clock or wristwatch.
Re: [slrn] upper status line
Author: Byrial Jensen
Date: Sun, 06 Jun 1999 00:00
Date: Sun, 06 Jun 1999 00:00
50 lines
2014 bytes
2014 bytes
Tomasz Sienicki | tsca <tsca@cryogen.com> wrote:
> I miss a similar feature in slrn. Instead of wasting space for
> " ** Press '?' for help, 'q' to quit. ** " I'd like to see a
> clock there -- a useful thing when reading news.
Maybe you would like this patch. I wrote it once for slrn 0.9.4.3
to make a primitive clock in the upper right corner of the slrn
window/screen. The clock is only updated when the top status line
is updated (most keys will cause that to happen). Users of mouse
menus in the top line will not see the clock.
I have just verified that the patch still works with 0.9.5.6.
--- 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;
+ 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 ();
}
/*}}}*/
--
Byrial
Re: [slrn] upper status line
Author: Tomasz Sienicki | tsca
Date: Sun, 06 Jun 1999 00:00
Date: Sun, 06 Jun 1999 00:00
18 lines
1457 bytes
1457 bytes
Byrial Jensen wrote
[in <slrn7ll5a2.1po.bjensen@ask.ask>]:
> > I miss a similar feature in slrn. Instead of wasting space for
> > " ** Press '?' for help, 'q' to quit. ** " I'd like to see a
> > clock there -- a useful thing when reading news.
>
> Maybe you would like this patch.
Yes, I do like this patch. Thank you very much!
--
tsca life is short: take risks *
Tomasz Sienicki <tsca@cryogen.com> if you win, you'll be happy *
if you lose, you'll be wise *
--- [ phevbfvgl xvyyrq gur png ] --------------------------- (anonymous) *
Re: [slrn] upper status line
Author: tony summerfelt
Date: Sun, 06 Jun 1999 00:00
Date: Sun, 06 Jun 1999 00:00
14 lines
1199 bytes
1199 bytes
On Sun, 06 Jun 1999 15:47:41 GMT, Byrial Jensen wrote: > I have just verified that the patch still works with 0.9.5.6. this works pretty well, it looks fairly close to what i was working on... -- *-------------------------------------- | |remove myspleen to email | *-----------------------
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads