Thread View: news.software.readers
3 messages
3 total messages
Started by tony summerfelt
Fri, 02 Apr 1999 00:00
up and down in article mode
Author: tony summerfelt
Date: Fri, 02 Apr 1999 00:00
Date: Fri, 02 Apr 1999 00:00
50 lines
1994 bytes
1994 bytes
this macro was recently posted here...
define article_smartup ()
{
if (is_article_visible ())
call ("article_lineup");
else
call ("up");
}
definekey ("article_smartup", "\xE0H", "article" );
define article_smartdn ()
{
if (is_article_visible ())
call ("article_linedn");
else
call ("down");
}
definekey ("article_smartdn", "\xE0P", "article" );
i saved this as `cursor.sl' in my /slrn/macros directory.
and i added the following to my slrn.rc file in amongst the other
`interpret' lines i have...
interpret "/slrn/macros/cursor.sl"
but it doesn't scroll one line up or down in article mode. this one has me
stumped. slrn is completely ignoring the new key assignments and using the
old ones. and i have those commentd out in my slrn.rc file :)
any help appreciated...
--
.t
*------------------------------------------------------------------------
| long and useless .sig removed. email me for the 10 meg version
|
| 'you want a toe? I can get you a toe.'
|
| take myspleen out to reply via email
*------------------------------------------------------
Re: up and down in article mode
Author: Stephane Gibier
Date: Sat, 10 Apr 1999 00:00
Date: Sat, 10 Apr 1999 00:00
27 lines
1865 bytes
1865 bytes
tony summerfelt <tsummerfelt1@myspleenhome.com> wrote :
[ ... snip ... ]
> definekey ("article_smartup", "\xE0H", "article" );
> definekey ("article_smartdn", "\xE0P", "article" );
> but it doesn't scroll one line up or down in article mode. this one
> has me stumped. slrn is completely ignoring the new key assignments
> and using the old ones. and i have those commentd out in my slrn.rc
> file :)
At first check the key code returned by your terminal for the Up and
Down arrows (the best way is to use the Ctrl-V feature of bash). When I
have posted these �smartkeys�, I used the XFree86's xterm with a PC102
french keyboard so my key codes are the following :
definekey( "article_smartup", "\e[A", "article" ); % Up
definekey( "article_smartdn", "\e[B", "article" ); % Down
definekey( "article_smartpgup", "\e[5~", "article" ); % PageUp
definekey( "article_smartpgdn", "\e[6~", "article" ); % PageDown
Just check the key codes.
Hope this helps.
Re: up and down in article mode
Author: tony summerfelt
Date: Sat, 17 Apr 1999 00:00
Date: Sat, 17 Apr 1999 00:00
20 lines
1459 bytes
1459 bytes
On 10 Apr 1999 12:39:36 GMT, Stephane Gibier wrote: > At first check the key code returned by your terminal for the Up and > Down arrows (the best way is to use the Ctrl-V feature of bash). i usually use a `showkey' function in jed for windows and linux...works for me most of the time. i'm unfamiliar with that bash technique just tried this under linux, and now the scrolling works fine... > Just check the key codes. most of the times i don't have a problem...everything's fine again...thanks for the help...
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