User Tools

Site Tools


screen

Differences

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

Link to this comparison view

Next revision
Previous revision
screen [2022/07/19 20:52] – created 85.134.209.200screen [2022/07/21 20:36] (current) admin
Line 5: Line 5:
  
 ==== Install Screen ==== ==== Install Screen ====
 +<code>
  apt-get install screen  apt-get install screen
- <nowiki>//</nowiki>or download it manually from http://www.gnu.org/software/screen/#TOCdownloading+ #or download it manually from http://www.gnu.org/software/screen/#TOCdownloading 
 +</code>
  
 ==== Basic Usage ==== ==== Basic Usage ====
- mesg n <nowiki>//</nowiki>turn messaging off+<code> 
 + mesg n       #turn messaging off
  screen  screen
- ctrl a c <nowiki>//</nowiki>copies and makes new screen + ctrl a c     #copies and makes new screen 
- ctrl a w <nowiki>//</nowiki>view screens + ctrl a w     #view screens 
- ctrl a A <nowiki>//</nowiki>rename current screen + ctrl a A     #rename current screen 
- ctrl a d <nowiki>//</nowiki>detach all screens + ctrl a d     #detach all screens 
- screen -DR <nowiki>//</nowiki>open screen and atttach screens+ screen -DR   #open screen and atttach screens 
 + ctrl a #     #Where # is the screen number 
 + ctrl a n     #show next screen window 
 +</code>
  
 ==== Regions/ Multiple Windows in Screen ==== ==== Regions/ Multiple Windows in Screen ====
- ctrl a S  <nowiki>//</nowiki>split current window. Leaves bottom screen empty +<code> 
- ctrl a <tab>   <nowiki>//</nowiki>tab between regions/split screens + ctrl a S      #split current window. Leaves bottom screen empty 
- ctrl a Q  <nowiki>//</nowiki>unsplit all windows from screen+ ctrl a <tab>  #tab between regions/split screens 
 + ctrl a Q      #unsplit all windows from screen 
 +</code>
  
 ==== Monitor Screens for Activity ==== ==== Monitor Screens for Activity ====
- ctrl a M  <nowiki>//</nowiki>toggles Monitoring on or off.+<code> 
 + ctrl a M       #toggles Monitoring on or off. 
 +</code>
  
 ==== Nested/Multiple Screens ==== ==== Nested/Multiple Screens ====
- ctrl a a c  <nowiki>//</nowiki>copies a nested screen +<code> 
- ctrl a a w  <nowiki>//</nowiki>views screens + ctrl a a c      #copies a nested screen 
- ctrl a a #  <nowiki>//</nowiki>go to screen number+ ctrl a a w      #views screens 
 + ctrl a a #      #go to screen number 
 +</code>
  
 ==== Scroll Back in a Screen ==== ==== Scroll Back in a Screen ====
 +<code>
  ctrl a [[  ctrl a [[
 +</code>
  
-====|Copy and Paste & Search in a Screen ==== +==== Copy and Paste & Search in a Screen ==== 
- ctrl a [  <nowiki>//</nowiki>enters copy mode +<code> 
- /wordtofind  <nowiki>//</nowiki>finds word, same as in vi.+ ctrl a [        #enters copy mode 
 + /wordtofind     #finds word, same as in vi.
  <enter> to start copy. Move arrow keys. Enter to stop copy.  <enter> to start copy. Move arrow keys. Enter to stop copy.
- ctrl a ]]  <nowiki>//</nowiki>paste+ ctrl a ]]       #paste 
 +</code>
  
 ==== Setting a Permanent Status Bar ==== ==== Setting a Permanent Status Bar ====
 +<code>
  vi $HOME/.screenrc  vi $HOME/.screenrc
  hardstatus on  hardstatus on
  hardstatus alwayslastline  hardstatus alwayslastline
  hardstatus string "%w%=%m/%d %c"  hardstatus string "%w%=%m/%d %c"
 +</code>
  
 ==== LOCK SCREEN ==== ==== LOCK SCREEN ====
- ctrl a x  <nowiki>//</nowiki>locks the screen with the current linux password + ctrl a x      #locks the screen with the current linux password 
- <nowiki>//</nowiki>If the terminal is closed, and then the screen reattached - no password :( + #If the terminal is closed, and then the screen reattached - no password :(
----- +
-Information Source:+
  
-http://www.bangmoney.org/presentations/screen.html+---- 
 +Ref: http://www.bangmoney.org/presentations/screen.html
  
-http://sunsite.ualberta.ca/Documentation/Gnu/screen-3.9.4/html_chapter/screen_toc.html 
  
 ====== Flash Taskbar in PuTTY on Screen Activity ====== ====== Flash Taskbar in PuTTY on Screen Activity ======
 So I've been trying to get this for a while. If I receive an email via pine or pm via irssi it would be nice if PuTTY would flash on the taskbar. Following this page on redbrick got it 1/2 working, in that if the current screen window had activity and PuTTY was minimised, then the taskbar would flash. I wanted it so if any screen window had activity that the taskbar would flash. Anyways after a bit of trial and error here is how I got it: So I've been trying to get this for a while. If I receive an email via pine or pm via irssi it would be nice if PuTTY would flash on the taskbar. Following this page on redbrick got it 1/2 working, in that if the current screen window had activity and PuTTY was minimised, then the taskbar would flash. I wanted it so if any screen window had activity that the taskbar would flash. Anyways after a bit of trial and error here is how I got it:
 +<code>
 **Step 1: Putty Config** **Step 1: Putty Config**
  Terminal -> Bell -> Taskbar/caption indication on bell: Flashing  Terminal -> Bell -> Taskbar/caption indication on bell: Flashing
Line 80: Line 96:
   };   };
  };  };
 +</code>
  
 After all this, screen will have to be restarted to take effect. Now, upon getting an email to pine or pm to irssi, PuTTY should flash on the taskbar. After all this, screen will have to be restarted to take effect. Now, upon getting an email to pine or pm to irssi, PuTTY should flash on the taskbar.
 Not sure whether this will work for Gome/KDE. Not sure whether this will work for Gome/KDE.
-<br>References:<br> + 
-http://wiki.redbrick.dcu.ie/mw/Irssi#Taskbar_Flashing  <br> +References:\\ 
-http://www.irssi.org/documentation/manual  <br> +  http://www.irssi.org/documentation/manual 
-http://www.linuxjournal.com/article/6340  <br> +  http://www.linuxjournal.com/article/6340 
-http://www.linuxjournal.com/article/6340#comment-335189  <br> +  http://www.linuxjournal.com/article/6340#comment-335189 
-http://www.slac.stanford.edu/comp/unix/package/epics/extensions/iocConsole/screen.1.html+
screen.1658260370.txt.gz · Last modified: 2022/07/19 21:13 (external edit)