User Tools

Site Tools


w3m

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
w3m [2009/04/10 07:09]
k2patel
w3m [2020/08/10 02:35] (current)
Line 215: Line 215:
  
 Here's the original key-binding table. If you are using Lynx-like key bindings, see the Lynx-like key binding. Here's the original key-binding table. If you are using Lynx-like key bindings, see the Lynx-like key binding.
 +=== original key-binding table ===
 +
 <code text | Page/Cursor motion> <code text | Page/Cursor motion>
  
Line 334: Line 336:
 </​code>​ </​code>​
  
-Lynx-like key binding +=== Lynx-like key binding ​=== 
-If you have chosen `Lynx-like key binding'​ at the compile time, you can use the following key binding. + 
-Page/Cursor motion+<code text | Page/Cursor motion>
 SPC,​C-v,​+ Forward page SPC,​C-v,​+ Forward page
 b,ESC v,​- Previous page b,ESC v,​- Previous page
Line 357: Line 359:
 ESC TAB,C-p,Up arrow Move to previous link ESC TAB,C-p,Up arrow Move to previous link
 C-g Show current page position C-g Show current page position
-Hyperlink operation+</​code>​ 
 +<code text | Hyperlink operation>
 RET, C-f, Right arrow Follow hyperlink RET, C-f, Right arrow Follow hyperlink
 d, ESC RET Save link to file d, ESC RET Save link to file
Line 372: Line 375:
 M Browse current document using external browser (use 2M and 3M to invoke second and third browser) M Browse current document using external browser (use 2M and 3M to invoke second and third browser)
 ESC M Browse link using external browser (use 2ESC M and 3ESC M to invoke second and third browser) ESC M Browse link using external browser (use 2ESC M and 3ESC M to invoke second and third browser)
-File/Stream operation+</​code>​ 
 +<code text | File/Stream operation>
 g,U Open URL g,U Open URL
 V View new file V View new file
 @ Execute shell command and load @ Execute shell command and load
 # Execute shell command and browse # Execute shell command and browse
-Buffer operation+</​code>​ 
 +<code text | Buffer operation>
 B, C-b, Left arrow Back to the previous buffer B, C-b, Left arrow Back to the previous buffer
 \ View HTML source \ View HTML source
Line 387: Line 392:
 ESC s Save source ESC s Save source
 ESC e Edit buffer image ESC e Edit buffer image
-Buffer selection mode+</​code>​ 
 +<code text | Buffer selection mode>
 k, C-p Select previous buffer k, C-p Select previous buffer
 j, C-n Select next buffer j, C-n Select next buffer
 D Delect current buffer D Delect current buffer
 RET Go to the selected buffer RET Go to the selected buffer
-Bookmark operation+</​code>​ 
 +<code text | Bookmark operation>
 v, ESC b Load bookmark v, ESC b Load bookmark
 a, ESC a Add current to bookmark a, ESC a Add current to bookmark
-Search+</​code>​ 
 +<code text | Search>
 /, C-s Search forward /, C-s Search forward
 n Search next n Search next
 w Toggle wrap search mode w Toggle wrap search mode
-Mark operation+</​code>​ 
 +<code text | Mark operation>
 C-SPC Set/​unset mark C-SPC Set/​unset mark
 P Go to previous mark P Go to previous mark
 N Go to next mark N Go to next mark
 " Mark by regular expression " Mark by regular expression
-Miscellany+</​code>​ 
 +<code text | Miscellany>
 ! Execute shell command ! Execute shell command
 H, ? Help (load this file) H, ? Help (load this file)
Line 413: Line 423:
 q Quit (with confirmation,​ if you like) q Quit (with confirmation,​ if you like)
 Q Quit without confirmation Q Quit without confirmation
-Line-edit mode+</​code>​ 
 +<code text | Line-edit mode>
 C-f Move cursor forward C-f Move cursor forward
 C-b Move cursor backward C-b Move cursor backward
Line 426: Line 437:
 TAB,​SPC Complete filename TAB,​SPC Complete filename
 RETURN Accept RETURN Accept
-Mouse operation +</code>
-If w3m is compiled with mouse option and you are using xterm/kterm/rxvt (in this case, you have to set the TERM environment variable to `xterm'​ or `kterm'​.) or GPM environment,​ you can use mouse for the navigation.+
  
 +==== Mouse operation ====
 +
 +If w3m is compiled with mouse option and you are using xterm/​kterm/​rxvt (in this case, you have to set the TERM environment variable to `xterm'​ or `kterm'​.) or GPM environment,​ you can use mouse for the navigation.
 +<code text>
 left click Move the cursor to the place pointed by the mouse cursor. If you click the cursor and it is on an anchor, follow the anchor. left click Move the cursor to the place pointed by the mouse cursor. If you click the cursor and it is on an anchor, follow the anchor.
 middle click Back to the previous buffer. middle click Back to the previous buffer.
 right click Open pop-up menu. You can choose an item by clicking it. right click Open pop-up menu. You can choose an item by clicking it.
 left drag Scroll document. The default behavior is to grab the document and drag it. You can reverse the behavior (grab the window and drag it) with the option setting panel. left drag Scroll document. The default behavior is to grab the document and drag it. You can reverse the behavior (grab the window and drag it) with the option setting panel.
 +</​code>​
 +
 +==== Key customization ====
  
-Key customization 
 You can customize the key binding (except line-editing keymap) by describing ~/​.w3m/​keymap. For example, You can customize the key binding (except line-editing keymap) by describing ~/​.w3m/​keymap. For example,
 +<code text>
 +keymap C-o NEXT_PAGE
 +</​code>​
  
-   ​keymap C-o NEXT_PAGE +binds `NEXT_PAGE'​ function (normally bound to SPC and C-v) to control-o. ​\\ 
- +See README.func for list of available functions. Original and Lynx-like keymap definitions are provided (keymap.default and keymap.lynx) as examples. 
- +<code text>
-binds `NEXT_PAGE'​ function (normally bound to SPC and C-v) to control-o. See README.func for list of available functions. Original and Lynx-like keymap definitions are provided (keymap.default and keymap.lynx) as examples.+
 Local CGI Local CGI
-You can run CGI scripts using w3m, without any HTTP server. It means that w3m behaves like an HTTP server and activates CGI script, then w3m reads the output of the script and display it. The bookmark registration and helper-app editor are realized as local CGI scripts. Using local CGI, w3m can be used as a general purpose form interface.+</​code>​ 
 +You can run CGI scripts using w3m, without any HTTP server. ​\\ 
 +It means that w3m behaves like an HTTP server and activates CGI script, ​\\ 
 +then w3m reads the output of the script and display it. \\ 
 +The bookmark registration and helper-app editor are realized as local CGI scripts. ​\\ 
 +Using local CGI, w3m can be used as a general purpose form interface.
  
 For security reason, CGI scripts invoked by w3m must be in one of these directories. For security reason, CGI scripts invoked by w3m must be in one of these directories.
Line 451: Line 474:
 The CGI script can use special header `w3m-control:'​ to control w3m. This field can take any function (see README.func),​ and the specified function is invoked after the document is displayed. For example, The CGI output The CGI script can use special header `w3m-control:'​ to control w3m. This field can take any function (see README.func),​ and the specified function is invoked after the document is displayed. For example, The CGI output
  
 +<code text>
 Content-Type:​ text/plain Content-Type:​ text/plain
 W3m-control:​ BACK W3m-control:​ BACK
 +</​code>​
  
 will display blank page and delete that buffer immediately. This is useful when you don't want to display any page after the script is invoked. The next example will display blank page and delete that buffer immediately. This is useful when you don't want to display any page after the script is invoked. The next example
  
 +<code text>
 Content-Type:​ text/plain Content-Type:​ text/plain
 W3m-control:​ DELETE_PREVBUF W3m-control:​ DELETE_PREVBUF
 +</​code>​
  
 contents..... contents.....
Line 465: Line 491:
  
 One w3m-control:​ header have to contain only one function, but you can include more than one w3m-control:​ lines in the HTTP header. In addition, you can specify an argument to GOTO function: One w3m-control:​ header have to contain only one function, but you can include more than one w3m-control:​ lines in the HTTP header. In addition, you can specify an argument to GOTO function:
 +<code text>
 Content-Type:​ text/plain Content-Type:​ text/plain
 W3m-control:​ GOTO http://​www.yahoo.com/​ W3m-control:​ GOTO http://​www.yahoo.com/​
 +</​code>​
  
 This example works exactly the same way to the Location header: This example works exactly the same way to the Location header:
 +<code text>
 Content-Type:​ text/plain Content-Type:​ text/plain
 Location: http://​www.yahoo.com/​ Location: http://​www.yahoo.com/​
 +</​code>​
  
 Note that this header has no effect when the CGI script is invoked through HTTP server. ​ Note that this header has no effect when the CGI script is invoked through HTTP server. ​
w3m.1239347355.txt.gz · Last modified: 2020/08/10 02:29 (external edit)