On Tue, 20 Jan 2026, sasa via Alpine-info wrote:

> Is there any simple way to get links in html document simply to display so I 
> can cut and paste them into a browser?
> 
> The best I can do is to define a fake URL viewer so that it asks "View 
> selected URL "...
> 
> Ideally it wouldn't waste screen width with "View selected URL "... and it 
> would use the full width of the screen so I can grab those insanely long 
> links that seem to be the bane of my email.
> 
> In a perfect world it would also automatically offer a shortened version to 
> aid copy-paste.
> 
> I absolutely do not want to run a browser from alpine (which is running on a 
> remote text terminal only server). 


I use the following bash script to display the url to copy/paste or click 
to open Firefox, or optionally launch links / lynx. 

----------------------------

#!/bin/bash

#
# Script to display links from pine,
# Either to click or in a text viewer
#

clear
echo -e "\n\n\nYour URL is below:\n\n\t$@"

echo -e "\n0) Quit"
echo "1) View in Links."
echo "2) View in Lynx"
echo -e "\n(Anything else quits also)\n"
read -p "Enter your selection then <enter>. " K

if [ "$K" = '1' ]; then
        links "$@"
elif [ "$K" = '2' ]; then
        lynx "$@"
fi

clear

exit 0




-- 
---
========================================================================
Chris Candreva  --  [email protected]  --  http://www.westnet.com/~chris
_______________________________________________
Alpine-info mailing list
[email protected]
http://mailman23.u.washington.edu/mailman/listinfo/alpine-info

Reply via email to