🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
7 messages
7 total messages Started by Brad Sims Wed, 19 Sep 2007 19:14
One slrn annoyance solved
#206106
Author: Brad Sims
Date: Wed, 19 Sep 2007 19:14
14 lines
1993 bytes
I use slrn a lot via SSH and well, when I would open a URL;
I couldn't see the article anymore as it handed the term over
to links... Solution is so damn simple I smacked myself for not
thinking of it.

I generaly run slrn inside GNU screen. (fabulous program by the way.)

The solution is to `set non_Xbrowser "screen links"` ; this way
when I open a URL it creates a new tab in screen so I can switch back
and forth painlessly.

-- 
"A free-range shoggoth is a happy shoggoth, and a happy shoggoth is
 generally less inclined to eat all of you at once."  -- Tim Morgan
Re: One slrn annoyance solved
#206109
Author: Troy Piggins
Date: Wed, 19 Sep 2007 20:24
20 lines
2304 bytes
* Brad Sims is quoted
* & my replies are inline below :
> I use slrn a lot via SSH and well, when I would open a URL;
> I couldn't see the article anymore as it handed the term over
> to links... Solution is so damn simple I smacked myself for not
> thinking of it.
>
> I generaly run slrn inside GNU screen. (fabulous program by the way.)
>
> The solution is to `set non_Xbrowser "screen links"` ; this way
> when I open a URL it creates a new tab in screen so I can switch back
> and forth painlessly.

Hey man - that's so easy and simple.  Good one.

-- 
Troy Piggins | http://piggo.com/~troy/slrn
* NEW MACRO      16/9/07: bash.sl           ___  |   __   __    ,-O   (o-    O 
* UPDATED MACROS  9/9/07: whois.sl         |___  | |/   |/  |  O   )  //\     O
                          view_manuals.sl   ___| | |    |   |   `-O   V_/_  OOO
Re: One slrn annoyance solved
#206126
Author: Brad Sims
Date: Thu, 20 Sep 2007 00:47
29 lines
2567 bytes
In Dread Ink, the Grave hand of Troy Piggins Did Inscribe:
> * Brad Sims is quoted
> * & my replies are inline below :
>> I use slrn a lot via SSH and well, when I would open a URL;
>> I couldn't see the article anymore as it handed the term over
>> to links... Solution is so damn simple I smacked myself for not
>> thinking of it.
>>
>> I generaly run slrn inside GNU screen. (fabulous program by the way.)
>>
>> The solution is to `set non_Xbrowser "screen links"` ; this way
>> when I open a URL it creates a new tab in screen so I can switch back
>> and forth painlessly.
>
> Hey man - that's so easy and simple.  Good one.

Only problem is putting something to start screen in my general slrn
startup script doesn't always work, it's not a problem... just
inelegant.

If anyone cares my .screenrc is online at
http://home.insightbb.com/~bmsims1/Scripts/Screenrc.html

And unlike most, mine actually explains what it does.

-- 
"Oompa, loompa, deedle dee queep,
If you are bad, you'll be killed in your sleep."
- Matt McIrvin
Re: One slrn annoyance solved
#206128
Author: Troy Piggins
Date: Thu, 20 Sep 2007 01:15
118 lines
5676 bytes
* Brad Sims is quoted
* & my replies are inline below :
> In Dread Ink, the Grave hand of Troy Piggins Did Inscribe:
>> * Brad Sims is quoted
>> * & my replies are inline below :
>>> I use slrn a lot via SSH and well, when I would open a URL;
>>> I couldn't see the article anymore as it handed the term over
>>> to links... Solution is so damn simple I smacked myself for not
>>> thinking of it.
>>>
>>> I generaly run slrn inside GNU screen. (fabulous program by the way.)
>>>
>>> The solution is to `set non_Xbrowser "screen links"` ; this way
>>> when I open a URL it creates a new tab in screen so I can switch back
>>> and forth painlessly.
>>
>> Hey man - that's so easy and simple.  Good one.
>
> Only problem is putting something to start screen in my general slrn
> startup script doesn't always work, it's not a problem... just
> inelegant.

I *always* start a named screen session when I log in via a bash
alias SC='/usr/local/bin/screen -d -R -A -m -S troy'

That way I can always reattach it no matter where I am.

I'm curious - your idea above will start a new screen session,
won't it?  Do you know of a way to attach links, or elinks in my
case, to the current screen session (named 'troy') that slrn is
running from?

> If anyone cares my .screenrc is online at
> http://home.insightbb.com/~bmsims1/Scripts/Screenrc.html
>
> And unlike most, mine actually explains what it does.

Always handy to have those as a reference.  Thanks.  Here's mine:

#v+
##############################################################################
## file : .screenrc
## by   : Troy Piggins
## date : 17/5/04
## for  : configuration file for screen
##############################################################################

# skip the startup message
startup_message off

# define a bigger scrollback, default is 100 lines
defscrollback 1024

# start in $HOME
chdir /home/troy

# start with visual bell as default
vbell off
vbell_msg "Bell on %t (%n)"

# An alternative hardstatus to display a bar at the bottom listing the
# windownames and highlighting the current windowname in blue. (This is only
# enabled if there is no hardstatus setting for your terminal)
hardstatus on
hardstatus alwayslastline
hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} %H %{..Y} %d/%m/%y %C%a "
#caption always "%m/%d/%y %0c%{=b kW}  %l  %{=r kd}%-Lw%{= bd}%50>%n%f* %t%{-}%+Lw%<%{- Wk}"

#term xterm
term screen-256color
termcapinfo putty-256color 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'

#blankerprg cmatrix -a -b -s
#idle 1800 blanker

## binds #####################################################################

bind t title

# F5 to create new window/screen
#bindkey -k k5 screen
# F6 to create new window/screen as root
#bindkey -k k6 screen -t '% |*root*' su -
# F11 for previous window
bindkey -k F1 prev
# F12 for next window
bindkey -k F2 next
# F9 to name the current window/screen
#bindkey -k k9 title

## startup screens ###########################################################

# Example of automatically running some programs in windows on screen startup.
# Use the form: screen [-flag] [window name] [window number] [program to run in
# window]
# The -t flag means that the window in which that program is running
# closes when you exit that program, so if you quit mutt
# window 1 closes.

screen -t mail 0 mutt -f ~/mail/white
#screen -t web 2 elinks http://www.google.com.au/
screen -t news 1 slrn
#screen -t rss 2 /usr/bin/snownews
#screen -t file 4 /usr/bin/mc
#screen -t edit vim
#screen -t web elinks

# Put bash screen last so that window 0 running bash will be open on startup.
screen bash

## EOF #######################################################################
#v-

-- 
Troy Piggins | http://piggo.com/~troy/slrn
* NEW MACRO      16/9/07: bash.sl           ___  |   __   __    ,-O   (o-    O 
* UPDATED MACROS  9/9/07: whois.sl         |___  | |/   |/  |  O   )  //\     O
                          view_manuals.sl   ___| | |    |   |   `-O   V_/_  OOO
Re: One slrn annoyance solved
#206156
Author: Brad Sims
Date: Thu, 20 Sep 2007 14:24
17 lines
2264 bytes
In Dread Ink, the Grave hand of Troy Piggins Did Inscribe:
>
> I'm curious - your idea above will start a new screen session,
> won't it?  Do you know of a way to attach links, or elinks in my
> case, to the current screen session (named 'troy') that slrn is
> running from?

Not if screen is already running; it will instead open a new screen tab
within the existing session that slrn is running from.

Try it... open a new tab in screen and type screen elinks $URL and see
what it does. Here it creates a new tab running elinks.

-- 
The American Civil War utterly demolishes the claim that the winners
write the history books.
    --  Pete McCutchen
Re: One slrn annoyance solved
#206166
Author: Troy Piggins
Date: Thu, 20 Sep 2007 20:42
27 lines
2769 bytes
* Brad Sims is quoted
* & my replies are inline below :
> In Dread Ink, the Grave hand of Troy Piggins Did Inscribe:
>>
>> I'm curious - your idea above will start a new screen session,
>> won't it?  Do you know of a way to attach links, or elinks in my
>> case, to the current screen session (named 'troy') that slrn is
>> running from?
>
> Not if screen is already running; it will instead open a new screen tab
> within the existing session that slrn is running from.
>
> Try it... open a new tab in screen and type screen elinks $URL and see
> what it does. Here it creates a new tab running elinks.

I did try it, I got an error message "$TERM too long - sorry."
I'm running screen via putty.  My $TERM is
"screen-256color.putty".

If I type "TERM=xterm; screen elinks" it does work as you say.
I'll play some more.

-- 
Troy Piggins | http://piggo.com/~troy/slrn
* NEW MACRO      16/9/07: bash.sl           ___  |   __   __    ,-O   (o-    O 
* UPDATED MACROS  9/9/07: whois.sl         |___  | |/   |/  |  O   )  //\     O
                          view_manuals.sl   ___| | |    |   |   `-O   V_/_  OOO
Re: One slrn annoyance solved
#206167
Author: Brad Sims
Date: Thu, 20 Sep 2007 20:48
16 lines
2185 bytes
In Dread Ink, the Grave hand of Troy Piggins Did Inscribe:
>
> I did try it, I got an error message "$TERM too long - sorry."
> I'm running screen via putty.  My $TERM is
> "screen-256color.putty".
>
> If I type "TERM=xterm; screen elinks" it does work as you say.
> I'll play some more.

Interesting, output from set tells me term=screen; that might make a
difference.

-- 
The American Civil War utterly demolishes the claim that the winners
write the history books.
    --  Pete McCutchen
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