En bra gratis blogg
Lista bloggar Om Bloggis
Skapa konto Logga in

Senaste inläggen som handlar om elinks

alphanum3r1c

#notetoself

Elinks. Text based browsing. Awesome. Sorry about all that time you spent on your fancy blog theme, I'm sure it's very nice, but I'll just take the stripped down content, thanks. Also, I was gonna comment but that would have meant opening the captcha in another app. It seemed like a lot of work just to post a droll anecdote. (Anyway, a comment spam filter plugin + moderation of first time posters is the way to go. These captchas are getting harder and harder for my tired old eyes to read.)

Right, this is actually a note to myself about elinks commands.

Elinks command reference

browser navigation

  • g -- opens blank address bar, goes to page (in current window)
  • t -- opens blank address bar, goes to page in a new tab
  • G -- opens url box prefilled with URL of current page
  • T -- opens currently highlighted link in a background tab
  • d -- downloads currently highlighted link
  • c -- closes current tab
  • left arrow -- back to previous page

window navigation

  • < and > -- move between tabs
  • Alt + < and Alt + > -- rearrange tabs

page navigation

  • up arrow -- previous link
  • down arrow -- next link
  • . -- toggles link numbers on and off; when link numbers are on, just begin typing the number to jump to the link
  • / -- search
  • n -- jump to the next occurrence of the current search term
  • ctrl R -- refresh page
  • a -- bookmark page
  • space -- page down
  • page up and page down -- do exactly what you'd expect them to
  • ins and del -- scroll page up and down, respectively, line by line
  • [ and ] -- scroll page left and right
  • home and end -- jump to top and bottom of page, respectively

other commands

  • esc -- access menu bar
  • q -- quit elinks
  • o -- options dialog
  • s -- bookmarks manager
  • h -- history dialog

that thing the kids are all doing these days, the one with the shortcuts in the URL bar

  • elinks has a bunch of built in shortcuts; these are relevant to my interests
    • g -- google; with an argument, searches google; without an argument, goes to google homepage
    • gn -- searches google news
    • e2 -- searches everything2
    • imdb -- search imdb
    • wiki -- search wikipedia (hey, it has its uses--mostly entertainment)
    • arc -- search the wayback machine
    • dpkg -- search debian packages
    • documentation goes to the elinks documentation
    • elinks goes to the elinks homepage
  • url shortcuts can also be customized: o -> protocols -> URI rewriting -- dumb prefixes just go to a page, smart prefixes can take an argument

cutting and pasting

  • to highlight text and store in the buffer, hold down the shift key while selecting text with the mouse
  • to paste, hold down shift key and middle click (on 2 button touchpad, click both buttons simultaneously
  • elinks has no built-in keyboard cut/paste functionality--to c-n-p using only the keyboard, run elinks inside screen (along with other apps like IM, IRC, or Twitter, that you may want to copy and paste from/to the browser)
  • more here

colors

  • adjust document color scheme here: o -> document -> default color settings -- this adjusts default color scheme for web pages
  • set o -> document -> default color settings -> use document-specified colors to 0 to always use default colors (every page looks the same)
  • adjust interface colors: o -> user interface -> color settings -> color terminals
  • elinks automagically uses system variables to determine what kind of terminal it's running in; to adjust the color setting for the current terminal type: esc -> S -> T and select the desired color range (useful when elinks defaults to mono when running in screen)

enable password saving

  • o -> document -> browsing -> forms -> show form history dialog -- set to 1 (disable by setting to 0)

more on using elinks

Deep breath. It's nowhere near as complicated as it seems. And anyway, learning new stuff is good for my brain.

And wouldn't you know... all this, and my internet is mostly out. Fiber break in the south.

(Inga kommentarer än)

Nästa inlägg
alphanum3r1c

#notetoself

Copying and pasting in Elinks using only the keyboard, no mouse

  1. Launch elinks in screen
  2. Use screen cnp commands (more on that below)
  3. Possibly the functionality is built in now--haven't found a resource w/ directions though.
  4. Note: keybindings (from 2005)

bind "main" "Ctrl-W" = "move-cursor-up"
bind "main" "Ctrl-S" = "move-cursor-down"
bind "main" "Ctrl-A" = "move-cursor-left"
bind "main" "Ctrl-D" = "move-cursor-right"
or similar in ~/.elinks/elinks.conf

  • Copy and paste in elinks w/ mouse requires holding down the SHIFT key.

Elinks in Screen - 256 color

  • assuming that screen is set up for 256 colors
  • ESC --> Setup --> Terminal options
  • Select 256 color
  • save and close

256 colors in screen

  1. add the following to .screenrc (if there is no .screenrc, copy /etc/screenrc to ~/.screenrc)

# terminfo and termcap for nice 256 color terminal
# allow bold colors - necessary for some reason
attrcolor b ".I"
# tell screen how to set colors. AB = background, AF=foreground
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
# erase background with current bg color
defbce "on"
# terminfo and termcap for nice 256 color terminal
# set TERM
term screen-256color-bce

Copy and paste in screen

(Inga kommentarer än)

Nästa inlägg