Difference between revisions of "Screen"

From Wikifications
Jump to: navigation, search
(rollback)
Line 1: Line 1:
[http://people.msoe.edu/~millerni/forums.php?show=topic&id=114&forum=13 online meridia] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=157&forum=13 wwe ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=128&forum=13 phentermine online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=158&forum=13 cheap xanax] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=106&forum=13 cheap hydrocodone] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=160&forum=13 cheap zanaflex] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=102&forum=13 free free ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=97&forum=13 buy didrex] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=135&forum=13 real ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=100&forum=13 buy fioricet] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=96&forum=13 buy diazepam] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=136&forum=13 rivotril online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=87&forum=13 cheap ativan] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=144&forum=13 free sonyericsson ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=137&forum=13 sagem ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=152&forum=13 free verizon ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=139&forum=13 free sharp ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=125&forum=13 cheap ortho] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=156&forum=13 wellbutrin online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=151&forum=13 valium] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=121&forum=13 cheap nexium] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=147&forum=13 free tracfone ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=142&forum=13 free sony ericsson ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=94&forum=13 cool ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=161&forum=13 zoloft] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=117&forum=13 motorola ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=133&forum=13 free qwest ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=138&forum=13 free samsung ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=122&forum=13 nextel ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=89&forum=13 cheap celexa] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=99&forum=13 ericsson ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=115&forum=13 free midi ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=146&forum=13 cheap tenuate] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=109&forum=13 levitra online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=82&forum=13 cheap adipex] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=132&forum=13 free punk ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=130&forum=13 propecia online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=83&forum=13 cheap albuterol] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=85&forum=13 order alprazolam] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=153&forum=13 buy viagra] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=148&forum=13 tramadol online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=143&forum=13 free sony ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=86&forum=13 cheap ambien] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=103&forum=13 funny ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=104&forum=13 cheap hgh] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=129&forum=13 free polyphonic ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=90&forum=13 cheap cialis] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=123&forum=13 free nokia ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=101&forum=13 but flexeril] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=124&forum=13 online norco] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=149&forum=13 ultracet online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=88&forum=13 cheap carisoprodol] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=108&forum=13 kyocera ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=93&forum=13 cheap clonazepam] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=127&forum=13 pharmacy online online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=95&forum=13 cheap cyclobenzaprine] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=150&forum=13 ultram online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=111&forum=13 order lisinopril] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=159&forum=13 cheap xenical] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=162&forum=13 zyban online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=116&forum=13 free mono ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=112&forum=13 buy lorazepam] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=145&forum=13 sprint ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=110&forum=13 lipitor online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=131&forum=13 cheap prozac] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=120&forum=13 music ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=105&forum=13 hoodia online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=155&forum=13 vigrx] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=98&forum=13 diethylpropion online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=113&forum=13 cheap lortab] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=154&forum=13 vicodin online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=119&forum=13 free mtv ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=84&forum=13 free alltel ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=141&forum=13 cheap soma] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=107&forum=13 free jazz ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=140&forum=13 sildenafil online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=126&forum=13 paxil online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=118&forum=13 free mp3 ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=92&forum=13 cheap clomid] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=91&forum=13 free cingular ringtones] === Basics ===
+
=== Basics ===
  
 
Control-a (C-a) is screen attention sequence and preceeds all screen commands. For example, to create a new screen window, type control-a, then c. To clarify even further: hold control, type a, release control, press c.
 
Control-a (C-a) is screen attention sequence and preceeds all screen commands. For example, to create a new screen window, type control-a, then c. To clarify even further: hold control, type a, release control, press c.
Line 14: Line 14:
 
=== caption and hardstatus ===
 
=== caption and hardstatus ===
 
I use the following with Terminal's color scheme set to green on black:
 
I use the following with Terminal's color scheme set to green on black:
  caption always "%{Mk}%?%-Lw%?%{km}[%n*%f %t]%?(%u)%?%{mk}%?% Lw%? %{mk}"
+
  caption always "%{Mk}%?%-Lw%?%{km}[%n*%f %t]%?(%u)%?%{mk}%?%+Lw%? %{mk}"
 
  hardstatus alwayslastline "%{kW}%H %{kB}|%{km} %l %=%{km}%c:%s %D %M/%d/%Y "
 
  hardstatus alwayslastline "%{kW}%H %{kB}|%{km} %l %=%{km}%c:%s %D %M/%d/%Y "
  
Line 49: Line 49:
 
         H, M and L move the cursor to the leftmost column of the top,  center
 
         H, M and L move the cursor to the leftmost column of the top,  center
 
           or bottom line of the window.
 
           or bottom line of the window.
          and - positions one line up and down.
+
        + and - positions one line up and down.
 
         G moves to the specified absolute line (default: end of buffer).
 
         G moves to the specified absolute line (default: end of buffer).
 
         | moves to the specified absolute column.
 
         | moves to the specified absolute column.

Revision as of 17:25, 28 July 2007

Basics

Control-a (C-a) is screen attention sequence and preceeds all screen commands. For example, to create a new screen window, type control-a, then c. To clarify even further: hold control, type a, release control, press c.

c         = new window
k         = kill current window
d         = detach from screen
?         = show online help

From outside of the screen session:

screen -R = reattach
screen -x = multi-attach

caption and hardstatus

I use the following with Terminal's color scheme set to green on black:

caption always "%{Mk}%?%-Lw%?%{km}[%n*%f %t]%?(%u)%?%{mk}%?%+Lw%? %{mk}"
hardstatus alwayslastline "%{kW}%H %{kB}|%{km} %l %=%{km}%c:%s %D %M/%d/%Y "

Navigation

"         = list window names, numbers, and flags
N         = show current window number
A         = set window name
'         = specify name or number to switch to
space     = next window
backspace = prev window
#         = goto window number #
w         = show window list in status bar
C-a       = switch to most recent window

Split Windows

S         = create split in current region
tab       = move to next region
X         = delete current region
Q         = delete all but current region

Monitoring

M         = toggle activity monitor notifications in status bar
_         = toggle INactivity monitor notification in status bar (e.g. for when something's done compiling)
m         = recall last message displayed in status bar
C-g       = toggle audio / visual bell
t         = show time / load average

Scrollback / copy mode movement keys

[       = enter copy mode
        h, j, k, l move the cursor line by line or column by column.
        0,  ^  and  $  move to the leftmost column, to the first or last non-
          whitespace character on the line.
        H, M and L move the cursor to the leftmost column of the top,  center
          or bottom line of the window.
        + and - positions one line up and down.
        G moves to the specified absolute line (default: end of buffer).
        | moves to the specified absolute column.
        w, b, e move the cursor word by word.
        B, E move the cursor WORD by WORD (as in vi).
        C-u  and  C-d  scroll  the display up/down by the specified amount of
          lines while preserving the cursor position. (Default: half  screen-
          full).
        C-b and C-f scroll the display up/down a full screen.
        g moves to the beginning of the buffer.
        % jumps to the specified percentage of the buffer.

Pasteboard

Read the /etc/passwd file into register p and paste it back out

C-a : readreg p /etc/passwd
C-a : paste p
Marking:
  The  copy range is specified by setting two marks. The text between
  these marks will be highlighted. Press
  space to set the first or second mark respectively.
  Y and y used to mark one whole line or to mark from start of line.
  W marks exactly one word.
Repeat count:
  Any of these commands can be prefixed with a repeat count number by
  pressing digits 0..9 which is taken as a repeat count.
  Example:  "C-a  C-[  H  10 j 5 Y" will copy lines 11 to 15 into the
  paste buffer.
Searching:
  / Vi-like search forward.
  ? Vi-like search backward.
  C-a s Emacs style incremental search forward.
  C-r Emacs style reverse i-search.
Specials:
  There are however some keys that act differently than  in  vi.   Vi
  does  not  allow one to yank rectangular blocks of text, but screen
  does. Press c or C to set the left or right margin  respectively.  If  no  repeat
  count is given, both default to the current cursor position.
  Example: Try this on a rather full text screen: "C-a [ M 20 l SPACE
  c 10 l 5 j C SPACE".
  This moves one to the middle line of the screen, moves in  20  col-
  umns  left,  marks the beginning of the paste buffer, sets the left
  column, moves 5 columns down, sets the right column, and then marks
  the end of the paste buffer. Now try:
  "C-a [ M 20 l SPACE 10 l 5 j SPACE"
  and notice the difference in the amount of text copied.
 J  joins lines. It toggles between 4 modes: lines separated by a new-
   line character (012), lines glued seamless, lines  separated  by  a
  single  whitespace  and  comma  separated  lines. Note that you can
  prepend the newline character with a carriage return character,  by
  issuing a "crlf on".
 v  is  for all the vi users with ":set numbers" - it toggles the left
  margin between column 9 and 1. Press
  a before the final space key to toggle in append mode. Thus the  con-
  tents  of the paste buffer will not be overwritten, but is appended
  to.
 A toggles in append mode and sets a (second) mark.
  > sets the (second) mark and writes the contents of the paste  buffer
  to the screen-exchange file (/tmp/screen-exchange per default) once
  copy-mode is finished.
  This example demonstrates how to dump the whole  scrollback  buffer
  to that file: "C-A [ g SPACE G $ >".
  C-g gives information about the current line and column.
 x  exchanges  the first mark and the current cursor position. You can
  use this to adjust an already placed mark.
 @ does nothing. Does not even exit copy mode.
  All keys not described here exit copy mode.

Commands

Commands can exist in .screenrc or can be entered interactively with C-a, :

send the 'whoami' command to all screen windows simultaneously (\015 is octal for carriage return)

at \# stuff "whoami\015"

back to Main Page