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

Senaste inläggen som handlar om screen



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

Ctrl-a c Create a window
Ctrl-a A Name a window
Ctrl-a :number (0-9) Number a window

Ctrl-a n Next window
Ctrl-a p Previous window
Ctrl-a (0-9) Switch to window by number
Ctrl-a Ctrl-a Toggle between most recent windows

Ctrl-a " Window menu
Ctrl-a w Window list

Ctrl-a [ Copy mode
Ctrl-a ] Paste

Ctrl-a d Detach the screen
$ screen -r Reattach the screen

Working with nested screen sessions

  • Top level responds to Ctrl-a etc.
  • Next level responds to Ctrl-a a etc.
  • Third level responds to Ctrl-a a a etc.
  • And so on.

SSH to terminal on non-256 system

  • Using 256 colors and connecting to a host where it creates errors, use: $ TERM=screen ssh user@example.com

(Inga kommentarer än)

Nästa inlägg

2009-02-27 14:14 - alphanum3r1c
Finishing the setup

I set up my xterm with fonts I can read without a microscope. Now I'm running Alpine and irssi in screen. I've been meaning to do that for a while, with the idea that I could keep them running and just ssh from the laptop when I wanted email or IRC. Probably not as necessary, since whatever replaces the dead laptop should have more than 256 MB RAM.

Added Twitter support to irssi, via Twirssi. It's a little confusing, but I think I've got it beat.

Tagged: Linux, Ubuntu

(Inga kommentarer än)

Nästa inlägg