w3m linux,Linux 终端浏览器 w3m
搜索熱詞
三款比較有名的 w3m、links2、lynx、其中w3m 對中文的支持很好,沒出現(xiàn)亂碼,而那兩款都會有亂碼
w3m 安裝
sudo apt-get install w3m
sudo apt-get install w3m w3m-img
如果出現(xiàn)亂碼,可以用w3m打開任意網(wǎng)頁,鍵盤鍵入o,然后將顯示語言調整為chinese
如果你的locale不是gbk的話還是會亂碼的。所以運行 export LC_ALL=zh_CN.GBK
w3m支持鼠標拖拽功能,w3m的基本鍵
a 在文本框里輸入文字
g 頁面頂端
s 切換歷史(buffer)
S 保存網(wǎng)頁至文件
v 網(wǎng)頁/源碼切換
h j k l 左下上右,和vim同
w 以word右進
Tab 在各連接之間切換
H 顯示幫助
q 退出,會有提示的
j,k,l,h 移動光標,就像vim中一樣
J/K 向下/向上滾屏
> 左右滾屏
T 打開一個新標簽頁
Esc-t 打開所有標簽頁,供你選擇,使用jk來上下移動
{/} 在標簽頁中切換 當然也可以用鼠標點擊切換
U 輸入新的網(wǎng)址
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
+ goto 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
w3m 設置用戶名密碼自動登錄
w3m 有一個功能是自動登錄需要用戶名和密碼的網(wǎng)站
追加 ~/.w3m/passwd 文件:
host host-name
port port-number
realm Username for *****: ***** 的那一部分
login user
password password
注意一點,realm的值是后面星號的部分。比如
提示 "Username for trac:",那 realm 對應的值是 trac
最后將 passwd的訪問權限改成600
總結
以上是編程之家為你收集整理的Linux 終端瀏覽器 w3m全部內容,希望文章能夠幫你解決Linux 終端瀏覽器 w3m所遇到的程序開發(fā)問題。
如果覺得編程之家網(wǎng)站內容還不錯,歡迎將編程之家網(wǎng)站推薦給程序員好友。
本圖文內容來源于網(wǎng)友網(wǎng)絡收集整理提供,作為學習參考使用,版權屬于原作者。
總結
以上是生活随笔為你收集整理的w3m linux,Linux 终端浏览器 w3m的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: c语言解决一元二次方程,一元二次方程求解
- 下一篇: android wheelview 字体