Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7741451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:02:05+00:00 2026-06-01T09:02:05+00:00

Is it possible to add a custom keymap to lynx (in the config file

  • 0

Is it possible to add a custom keymap to lynx (in the config file ~/.lynxrc), which sends information (e.g. the current URL, html, title, etc.) to a shell command?

An example use case:
I am on OSX and the shell has a command open, which attempts to open anything given to it in a default fashion. So, if I am in lynx and want to move the current webpage to the default browser I would want to call open current-url from the shell.

Another:
Collating an organized bookmark file by sending URL and title to a shell script (or something else).

Using the default keymap ! opens up the default shell, but it doesn’t give me the URL nor does it run a single command and exit back to lynx as I would want for this.

Any ideas would be greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T09:02:06+00:00Added an answer on June 1, 2026 at 9:02 am

    I actually ended up finding a couple ways to handle this. Some are more ideal than others. It took some digging through the default configuration file.

    The following are Two ways via shell command from lynx:

    OPTION A: Run an shell command. Add new variable EXTERNAL: to the /etc/lynx.cfg file, some examples:

    .h2 EXTERNAL   
    # EXTERNAL:<url>:<command> %s:<norestriction>:<allow_for_activate>[:environment]
    
    # Example 0: use xclip to set clipboard text
    EXTERNAL:http:echo %s | xclip -selection clip-board:TRUE
    
    # Example 1: send the url to `open <url>` to open default browser
    EXTERNAL:http:open %s:TRUE
    
    # Example 2: download with wget if ftp page
    EXTERNAL:ftp:wget %s &:TRUE
    
    # By default ',' and '.' map to running EXTERNAL on the page and link respectively
    

    NOTE: Lynx can only send the URL (cannot send title or any other information from the webpage without parsing a lynx dump itself)

    OPTION B: Launch a browser with a custom sh script. Add new variable PRINTER: to the /etc/lynx.cfg file, an example:

    .h2 PRINTER
    # PRINTER:<name>:<command>:<option>:<lines/page>[:<environment>]
    PRINTER:openurl:/Users/username/bin/openurl.sh %s:TRUE 
    

    Then create a separate sh script /Users/username/bin/openurl.sh that is called when PRINTER is triggered.

    #!/bin/sh
    # /Users/username/bin/openurl.sh
    url=$LYNX_PRINT_URL
    title=$LYNX_PRINT_TITLE 
    # other variables exist like the date etc... look them up :)
    # http://osr600doc.sco.com/en/INT_lynxDoc/keystrokes/environments.html
    
    # opens the url in a default browser.
    /usr/bin/open $url
    

    There may be other ways like using the lynxified proxies: lynxexec, lynxprog, and lynxcgi, but I was unable to successfully pass variables with these methods in my own tests.

    If you know a way to get title and url information from these methods I would be interested in hearing it. EXTERNAL and PRINTER methods are achieved with a single key press. Unlike print screen options which would need several keystrokes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to add a custom object (String or URL) to JNDI using
Is it possible to add custom fields to drupal navigation menu (besides title and
Is it possible to add a custom css file to a fb:like-box? For example,
Is it possible to add custom command-line arguments to an Eclipse .app folder? In
is it possible to add custom data to the results so it can be
I was wondering if its possible to add custom header with classic asp. In
Is it possible to add a custom tab to a project properties page in
Is it possible to add a custom button in Sharepoint 2010 Ribbon just for
Is it possible to add custom dictionary fields to an images metadata? The following
Is it possible to add a custom property to an object that is part

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.