1. 程式人生 > >三款比較有名的終端瀏覽器(w3m links2 lynx)

三款比較有名的終端瀏覽器(w3m links2 lynx)

分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!http://blog.csdn.net/jiangjunshow

也歡迎大家轉載本篇文章。分享知識,造福人民,實現我們中華民族偉大復興!

               

ubuntu自帶的終端瀏覽器:w3m

終端瀏覽器,終端,瀏覽器terminalbrowser

w3mubuntu10.10

以前偶爾在網上看到一篇linux下瀏覽器測評的文章,才知道有終端瀏覽器那麼個東西,這才想起很多外國電影上電腦高手用的瀏覽器都是很簡單,黑底白字,我想那大概就是終端瀏覽器吧!

今天抱著好玩的心態google了一下終端瀏覽器,找到了三款比較有名的,w3m , links2 ,lynx .然後都試了一下,還是覺得w3m最好用。
w3m在ubuntu10.10裡集成了,如果沒有可以使用 sudo apt-get install w3m 安裝,要想讓他支援圖片還得安裝 w3m-imgsudo apt-get install w3m w3m-img
 即可
w3m對中文的支援很好,沒出現亂碼,而那兩款都會有亂碼,很不方便
如果出現亂碼,可以用w3m開啟任意網頁,鍵盤鍵入o,然後將顯示語言調整為chinese
如果你的locale不是gbk的話還是會亂碼的。所以執行 export LC_ALL=zh_CN.GBK

如圖,在使用輸入視窗時,只需將游標移至相應位置,按回車,然後會在終端左下角顯示text:再輸入你想輸入的文字即可,很方便。
w3m支援滑鼠拖拽功能
說些w3m的基本鍵
a 在文字框裡輸入文字
g 頁面頂端 
G 頁面底部
s 切換歷史(buffer) 
S 儲存網頁至檔案 
v 網頁/原始碼切換 
h j k l 左下上右,和vim同 
w 以word右進 
Tab 在各連線之間切換
H 顯示幫助
q 退出,會有提示的
j,k,l,h 移動游標,就像vim中一樣 
J/K 向下/向上滾屏
</> 左右滾屏
T 開啟一個新標籤頁 
Esc-t 開啟所有標籤頁,供你選擇,使用jk來上下移動
{/} 在標籤頁中切換 當然也可以用滑鼠點選切換
U 輸入新的網址 
B 後退 
Ctrl+q 關閉當前標籤頁
/ 向後查詢當前頁
? 向前查詢當前頁



w3m -help可以顯示幫助資訊,一些w3m的基本命令
下面是w3m -help 回顯的內容:
usage: w3m [options] 
options:
-t tab set tab width
-r ignore backspace effect
-l line # of preserved line (default 10000)
-I charset document charset
-O charset display/output charset
-B load bookmark
-bookmark file specify bookmark file
-T type specify content-type
-m internet message mode
-v visual startup mode
-M monochrome display
-N open URL of command line on each new tab
-F automatically render frame
-cols width specify column width (used with -dump)
-ppc count specify the number of pixels per character (4.0...32.0)
-ppl count specify the number of pixels per line (4.0...64.0)
-dump dump formatted page into stdout
-dump_head dump response of HEAD request into stdout
-dump_source dump page source into stdout
-dump_both dump HEAD and source into stdout
-dump_extra dump HEAD, source, and extra information into stdout
-post file use POST method with file content
-header string insert string as a header
+<num> goto <num> line
-num show line number
-no-proxy don't use proxy
-4 IPv4 only (-o dns_order=4)
-6 IPv6 only (-o dns_order=6)
-no-mouse don't use mouse
-cookie use cookie (-no-cookie: don't use cookie)
-pauth user:pass proxy authentication
-graph use graphic character
-no-graph don't use graphic character
-s squeeze multiple blank lines
-W toggle wrap search mode
-X don't use termcap init/deinit
-title[=TERM] set buffer name to terminal title string
-o opt=value assign value to config option
-show-option print all config options
-config file specify config file
-help print this usage message
-version print w3m version
-reqlog write request logfile
-debug DO NOT USE
           

給我老師的人工智慧教程打call!http://blog.csdn.net/jiangjunshow

這裡寫圖片描述