#1 Provide URL launch facility


After responding to walks' question in the forums, and
recently being frustrated with my current telnet clients
inability to detect and launch URLs, an idea percolated
in my head: could Console be able to do that?

If it could scan the text on the screen and pick out
strings, it could then identify URLs, format them as
URLs (underlined,e.g.) and provide the ability to launch
the browser on them when clicked.

That would be a great way to provide some advanced
features to console-mode programs that currently don't
and/or can't support it.

It would also open up another host of other possibilities
if made more general - have a list of regular expressions
(REs) defined (user modifiable), and corresponding
formatting options and actions to taken when clicked on.
You could have REs defined for:
http\:.* - underline - launch browser
ftp\:.* - launch ftp client
http\:.*\.microsoft\.com - underline blue - launch IE
http\:.*\.netscape\.com - underline gray - launch NS
Filename REs (*.jpg,e.g.) - launch program
etc. - though just identifying URLs and letting the shell
handle them is more standard (and there are probably
routines around to ID URLs).

If selection were added (i.e. mark/copy), you could
provide functions to perform on selected text:
copy (obviously), or launch a user-defined command
(such as a link that passes the selected text to a
dictionary site for spell checking or translation).


  • Marko Bozikovic

    Marko Bozikovic - 2003-06-05

    Logged In: YES

    This is a great idea, but implementation could be a bit
    tricky, since it would interfere with painting the window,
    which is the most expensive part of the program, and
    therefore I try to keep it as fast as possible. I'll give it
    some thought, and see what can be done about it...

    I don't understand the last paragraph. You can copy/paste in
    Console. Use shift+left click and drag to select, click
    inside selection to copy and shift+right click to paste into

  • Rob Davenport

    Rob Davenport - 2003-07-22

    Logged In: YES

    I understand about wanting to keep it fast. But hardware will
    keep getting better I believe and it'd be a nice feature to
    keep in mind. It could be added as an optional feature, to
    try it out and be ready for the faster machine. Just keep it in
    mind. :)

    And, d'oh! I should have found the copy/paste functionality.
    Sorry about that.

    Hmm - maybe a compromise would be to add a "Send to"
    menu to the context menu; enabled if a selection is active.
    Actually the best thing would be to use the user's existing
    SendTo folder contents to make the send to menu. Then you
    could do most of the stuff I mention above (send to IE,
    Emacs or other editor, etc.) Rats, that would just send text,
    not a file object. Scratch that - I guess you'd need to let
    the user define 'external send to targets' in the .xml and try
    to launch them passing the selection text to it as a parameter.
    I'll have to play around and see what I can come up with.

  • Marko Bozikovic

    Marko Bozikovic - 2003-10-03
    • status: open --> closed

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks