LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 753|回复: 5

在MUTT中使用LYNX的问题

[复制链接]
发表于 2006-8-9 08:42:02 | 显示全部楼层 |阅读模式
如何在MUTT里调用LYNX看网页时怎样进入链接,如直接使用LYNX时,用TAB键可以把MOUSE移到链接上,回车后可进入相关链接页面。而在MUTT里使用TAB时,进入下一封未读邮件。
发表于 2006-8-9 11:11:20 | 显示全部楼层
urlview
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-10 15:10:53 | 显示全部楼层
能说详细一点吗?URLVIEW好像是个和W3M功能相似的BROWSER吧?
回复 支持 反对

使用道具 举报

发表于 2006-8-10 18:32:47 | 显示全部楼层
$ man urlview|col -b
urlview(1)                                                            urlview(1)



NAME
       urlview - URL extractor/launcher

SYNOPSIS
       urlview filename [ filename ... ]

DESCRIPTION
       urlview        is  a  screen  oriented         program for extracting URLs from text
       files and displaying a menu from which you may launch a command to view
       a specific item.

CONFIGURATION
       urlview attempts to read ~/.urlview upon startup.  If this file doesn't
       exist, it will try to read a  system  wide  file         in  /etc/urlview/sys-
       tem.urlview.  There are two configuration commands (order does not mat-
       ter):

       REGEXP regexp
              urlview uses a regular expression to extract URLs from the spec-
              ified  text files.  \r, \t, \n and \f are all converted to their
              normal printf(3) meanings.  The default REGEXP is:


       (((https?|ftp|gopher)://|(mailto|file|news)[^' <>"]+|(www|web|w3).[-a-z0-9.]+)[^' .,;<>":]


       COMMAND command
              If the specified command contains a %s, it  will        be  subsituted
              with  the         URL that was requested, otherwise the URL is appended
              to the COMMAND string.  The default COMMAND is:

              url_handler.sh %s

       Note: You should never put single quotes around the %s.         urlview  does
       this for you, and also makes sure that single quotes eventually showing
       up inside the URL are handled properly.        (Note that this shouldn't hap-
       pen with the default regular expression, which explicitly excludes sin-
       gle quotes.)

FILES
       /etc/urlview/system.urlview
              system-wide urlview configuration file

       ~/.urlview
              urlview configuration file

ENVIRONMENT
       If the environment variable BROWSER is set to a browser command,         or  a
       colon-delimited        list of commands to try, then the specified browser is
       used. %s is replaced with the quoted url to view. If %s is not part  of
       a command, the url is appended to the command.

SEE ALSO
       printf(3), regcomp(3), regex(7), environ(7)

AUTHOR
       Michael Elkins <me@cs.hmc.edu>.

       Modified for Debian by Luis Francisco Gonzalez <luisgh@debian.org>.

       Modified         for SuSE by Dr. Werner Fink <werner@suse.de> and Stepan Kasal
       <kasal@suse.cz>.

       Changes put together by Thomas Roessler        <roessler@does-not-exist.org>.




                                                                    urlview(1)
回复 支持 反对

使用道具 举报

发表于 2006-8-10 18:33:58 | 显示全部楼层
$ cat ~/.urlview
REGEXP (((http|https|ftp|gopher)|mailto)//)?[^ >"\t]*|www\.[-a-z0-9.]+)[^ .,;\t>">\):]
#REGEXP (((http|https|ftp|gopher)|mailto)[.:][^ >"\t]*|www\.[-a-z0-9.]+)[^ .,;\t>">\):]

# Command to invoke for selected URL.  Use lynx, netscape, or url_handler.sh
# shell script.  Alternatively, you can leave COMMAND unset and set the BROWSER
# environment variable instead.

COMMAND lynx %s
#COMMAND opera -remote "openURL(`echo %s`,background-page)"
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-14 13:23:31 | 显示全部楼层
谢谢,搞定,再把LYNX换成W3M就可以了,我喜欢用它,个人觉得比LYNX好用。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表