Thread View: news.software.readers
3 messages
3 total messages
Started by Bill Nottingham
Wed, 22 Apr 1998 00:00
slrn: header_display_format problem...
Author: Bill Nottingham
Date: Wed, 22 Apr 1998 00:00
Date: Wed, 22 Apr 1998 00:00
43 lines
2199 bytes
2199 bytes
I just started using slrn 0.9.5.1, and I'm having problems getting the header display to the way I had it before using the new header_display_format variable. With 0.9.4.6, I had the following: set show_thread_subject 0 set author_display 1 set display_author_realname 0 This produced the following display: slrn 0.9.4.6 ** Press '?' for help, 'q' to quit. ** Server: /var/sp... 1 D 23: SLRN: (repost) slrnpull scoring fee Lloyd Zusman <lj... 2 D 14: slrn: random signatures? dha@panix.com (D... -> D 20: mq> c928400@student.... 4 D 23: tq> dha@panix.com (D... News Group: news.software.readers -- 6/20 (35%) Now, with 0.9.5.1, I tried the following header_display_format: header_display_format 0 "%F%-5S%-5l:%t%35s %f" This produces the following: slrn 0.9.5.1 ** Press '?' for help, 'q' to quit. ** Server: /var/sp... 1 D 23: SLRN: (repost) slrnpull scoring fee Lloyd Zusman <lj... 2 D 14: slrn: random signatures? dha@panix.com (D... 3 D 20: mq> c928400@studen... -> D 23: tq> dha@panix.co... 5 D 30: x mq> c928400@st... News Group: news.software.readers -- 7/20 (40%) I'm assuming the stairstep-type effect comes from the fact that the thread tree is variable in length. Setting a field length for the thread tree doesn't seem to help. Is there a way I can get the previous display behavior? Bill
Re: slrn: header_display_format problem...
Author: John E. Davis
Date: Wed, 22 Apr 1998 00:00
Date: Wed, 22 Apr 1998 00:00
57 lines
2555 bytes
2555 bytes
On 22 Apr 1998 07:38:38 GMT, Bill Nottingham <wen2@po.cwru.edu>
wrote:
>header_display_format 0 "%F%-5S%-5l:%t%35s %f"
>
>This produces the following:
>
>slrn 0.9.5.1 ** Press '?' for help, 'q' to quit. ** Server: /var/sp...
> 1 D 23: SLRN: (repost) slrnpull scoring fee Lloyd Zusman <lj...
> 2 D 14: slrn: random signatures? dha@panix.com (D...
> 3 D 20: mq> c928400@studen...
>-> D 23: tq> dha@panix.co...
> 5 D 30: x mq> c928400@st...
>News Group: news.software.readers -- 7/20 (40%)
As previously promised, the following patch should solve this problem.
>From my changes.txt file for the next release:
3. now header format descriptor: %g. This may be used to specify the
column the next write to the screen should take place.
Specifically, `%Xg' indicates that the cursor should be moved to
column X (numbered from 0). If X is negative, the cursor will be
moved X columns from the right edge of the window. To
understand this, compare:
header_display_format 0 "%F%-5S%-5l:%t%35s %f"
to
header_display_format 0 "%F%-5S%-5l:%t%35s%-24g%f"
in the presence of an open thread tree. The latter form indicates
that the `From' header (%f) should be written out 24 columns from
the right edge of the window.
The patch is to slrn/src/art.c:
--- art.c.ORIG Mon Apr 20 16:22:09 1998
+++ art.c Wed Apr 22 12:45:49 1998
@@ -7575,6 +7575,13 @@
s = buf;
sprintf (s, "%d", h->number);
break;
+
+ case 'g':
+ SLsmg_erase_eol ();
+ if (right_justify)
+ field_len = SLtt_Screen_Cols - field_len;
+ SLsmg_gotorc (row, field_len);
+ break;
}
slrn_set_color (color);
--John
Re: slrn: header_display_format problem...
Author: John E. Davis
Date: Wed, 22 Apr 1998 00:00
Date: Wed, 22 Apr 1998 00:00
22 lines
1397 bytes
1397 bytes
On 22 Apr 1998 07:38:38 GMT, Bill Nottingham <wen2@po.cwru.edu> wrote: >Now, with 0.9.5.1, I tried the following header_display_format: > >header_display_format 0 "%F%-5S%-5l:%t%35s %f" [...] >Is there a way I can get the previous display behavior? This is a bit tricky. The only solution that I can think of is to add a special escape sequence to position the cursor, e.g., header_display_format 0 "%F%-5S%-5l:%t%35s %70p%f" would cause the cursor to be positioned at column 70. I will post a patch in a few hours that implements this for you. -- John E. Davis Center for Space Research/AXAF Science Center 617-258-8119 One Hampshire St., Building NE80-6019 http://space.mit.edu/~davis Cambridge, MA 02139-4307
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