Surf en mode texte

, par MiKaël Navarro

Surfer sur le Net encore plus rapidement – en mode texte !

Suite à l’article Light web browsers sur les navigateurs Internet « léger », si ça ne va encore pas assez vite…

Lynx

Peut-être le plus ancien, Lynx est un navigateur web libre (license GPL) en mode texte qui s’utilise donc au clavier.

Initialement conçu pour les systèmes Unix et VMS, il tourne maintenant aussi sur MS-DOS, Windows et MacOS.

À noter que grâce à son interface facile à intégrer à un synthétiseur vocal, Lynx était très populaire auprès des déficients visuels.

P.I. Lynx est aussi utilisé comme outil de développement en permettant de créer des robots d’indexation : cf. https://github.com/jbar/LynxBot

Ses principaux homologues sont Links et w3m :

Links

links est un navigateur web convivial et très léger (sa version 2 apporte le supporte du javascript et le rendu des images).

Autre particularité il possède aussi un mode graphique.

Elinks est une version avancée de Links.

Principales commandes extraites de la documentation :

  • Space Move downwards by a page (move-page-down)
  • Ctrl-F Move downwards by a page (move-page-down)
  • Ctrl-N Scroll down (scroll-down)
  • Ctrl-P Scroll up (scroll-up)
  • Ctrl-A Move to the start of the document (move-document-start)
  • Ctrl-E Move to the end of the document (move-document-end)
  • Ctrl-L Redraw the terminal (redraw)
  • Ctrl-R Reload the current page (reload)
  • E Open "Go to URL" dialog box containing the current link URL (goto-url-current-link)
  • G Open "Go to URL" dialog box containing the current URL (goto-url-current)
  • g Open "Go to URL" dialog box (goto-url)
  • L Open the link context menu (link-menu)
  • T Open the current link in a new tab in the background (open-link-in-new-tab-in-background)
  • t Open a new tab (open-new-tab)
  • < Previous tab (tab-prev)
  • > Next tab (tab-next)
  • c Close tab (tab-close)
  • e Open the tab menu (tab-menu)
  • = Show information about the current page (document-info)
  • d Download the current link (link-download)
  • v View the current image (view-image)
  • { Scroll left (scroll-left)
  • } Scroll right (scroll-right)
  • / Search for a text pattern (search)
  • n Find the next occurrence of the current search text (find-next)
  • h Open history manager (history-manager)
  • u Go forward in history (history-move-forward)
  • Down Move to the next link (move-link-next)
  • Up Move to the previous link (move-link-prev)
  • Enter Follow the current link (link-follow)
  • Escape Activate the menu (menu)
  • Home Move to the start of the document (move-document-start)
  • End Move to the end of the document (move-document-end)
  • Left Return to the previous document in history (history-move-back)
  • Right Follow the current link (link-follow)
  • PageDown Move downwards by a page (move-page-down)
  • PageUp Move upwards by a page (move-page-up)
  • q Open a quit confirmation dialog box (quit)
  • : Enter ex-mode (command line) (exmode)

W3m

w3m est un navigateur Web libre et open source en mode texte. Il supporte les tableaux et cadres (frames), SSL, les couleurs, et même les images en ligne pour les terminaux qui le permettent.
Son rendu approche le plus possible de celui de navigateurs graphiques.

Quelques commandes (en partie partagées avec Lynx) extraites du manuel :

  • In-page navigation :
    • SPC, C-v, PGDN Scroll one page downwards
    • b, M-v, PGUP Scroll one page upwards
    • l, C-f, RIGHT Move cursor right (with a half-screen shift at the screen edge)
    • h, C-b, LEFT Move cursor left (with a half-screen shift at the screen edge)
    • j, C-n, DOWN Move cursor down (with a one-line scroll at the screen edge)
    • k, C-p, UP Move cursor up (with a one-line scroll at the screen edge)
    • ^, C-a Go to the beginning of the line
    • $, C-e Go to the end of the line
    • TAB Move to the next hyperlink
  • Hyperlink Operations :
    • C-j, C-m, RET Follow current hyperlink in a new buffer
    • I Display image in viewer
    • M-I Save inline image
    • = Display information about the current document
    • C-h Show browsing history
  • Bookmark management :
    • M-b View bookmarks
    • M-a Add current page to bookmarks
  • File/Stream Operations :
    • g Open specified document in a new buffer
  • Content Operations :
    • C-l Draw the screen anew
    • R Load current document anew
  • Buffer/Tab Navigation :
    • B Close current buffer and return to the one below in stack
    • s Pop up buffer-stack menu
    • M-t Pop up tab selection menu
    • T Open a new tab (with current document)
    • C-t Follow current hyperlink in a new tab
    • } Switch to the next tab
    • { Switch to the previous tab
    • C-q Close the current tab
  • Searches :
    • / Search forward
    • n Continue search forward
  • Miscellaneous :
    • H Show help panel
    • q Quit with confirmation request
  • Mouse Operation :
    • left click Moves the cursor to the place indicated by the mouse pointer.
      Follows a hyperlink the cursor is currently located and the mouse points to.
    • middle click Back to the previous buffer.
    • right click Open pop-up menu. You can choose an item by clicking it.

w3m peut aussi être utilisé comme formatteur de texte, convertissant l’HTML en simple texte.

w3m permet aussi une navigation rapide sur des pages web directement depuis Emacs, via le module Emacs Lisp w3m.el (beaucoup plus rapide que Emacs/W3, qui réalise tout en Lisp, même l’affichage) : cf. http://emacs-w3m.namazu.org/, https://www.emacswiki.org/emacs/emacs-w3m

P.I. depuis Emacs 24.4, eww est le nouveau browser web intégré à Emacs écrit en Lisp et basé libxml2.

P.-S.

Et pour l’e-mail :
* Alpine, basé sur Pine, est un client de messagerie en ligne de commande. Simple d’utilisation il ne manque pas de fonctionnalitées. Pour l’annecdote c’est le client de messagerie de Linus Torvalds ;)
* Mutt est un client mail en mode texte, mais contrairement à ce que l’on pourrait penser il est nettement plus simple d’utilisation que de nombreux logiciels graphiques. De plus il est l’un des clients mails les plus avancés pour Linux. Le slogan de Mutt est « All mail clients suck. This one just sucks less. », que l’on peut traduire par « Tous les logiciels de courrier électronique sont nuls. Celui-là l’est juste un peu moins. ».

* Libremail est une suite de logiciels libres pour le traitement du courriel (une initiative individuelle de Bernard Chardonneau (France)). Il a été initié principalement pour solutionner les problèmes d’engorgement lors de l’arrivée de gros messages et les problèmes de connexions (on était à l’époque du RTC !).