Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteDernière révisionLes deux révisions suivantes |
informatique:screen [29/08/2019 15:04] – cyrille | informatique:screen [30/08/2019 09:05] – doc hardcopy cyrille |
---|
====== Screen Terminal Emulator ====== | ====== Screen Terminal Emulator ====== |
| |
alternative: [[http://byobu.co|byobu]] | Doc: |
| * https://doc.ubuntu-fr.org/screen |
| |
| Alternatives: |
| * [[http://byobu.co|byobu]] |
| |
===== Handbook ===== | ===== Handbook ===== |
| |
.--------------.---------------.----------------------------------------. | .--------------.---------------.----------------------------------------. |
| | | | | | | | | |
| Shortcut | Command | Description | | | Shortcut | Command | Description | |
| | | | | | | | | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a ' | select | Prompt for a window name or number to | | | C-a ' | select | Prompt for a window name or number to | |
| | | switch to. | | | | | switch to. | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a " | windowlist -b | Present a list of all windows for | | | C-a " | windowlist -b | Present a list of all windows for | |
| | | selection. | | | | | selection. | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a 0 .. 9 | select 0 .. 9 | Switch to window number 0 ... 9 | | | C-a 0 .. 9 | select 0 .. 9 | Switch to window number 0 ... 9 | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a [TAB] | focus | Switch the input focus to the next | | | C-a [TAB] | focus | Switch the input focus to the next | |
| | | region. | | | | | region. | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a C-a | other | Toggle to the window displayed | | | C-a C-a | other | Toggle to the window displayed | |
| | | previously. | | | | | previously. | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a a | meta | Send the command character (C-a) to | | | C-a a | meta | Send the command character (C-a) to | |
| | | window. | | | | | window. | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a A | title | Allow the user to enter a name for the | | | C-a A | title | Allow the user to enter a name for the | |
| | | current window. | | | | | current window. | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a b | break | Send a break to window. | | | C-a b | break | Send a break to window. | |
| C-a C-b | | | | | C-a C-b | | | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a B | pow_break | Reopen the terminal line and send a | | | C-a B | pow_break | Reopen the terminal line and send a | |
| | | break. | | | | | break. | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a c | screen | Create a new window with a shell and | | | C-a c | screen | Create a new window with a shell and | |
| C-a C-c | | switch to that window. | | | C-a C-c | | switch to that window. | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a C | clear | Clear the screen. | | | C-a C | clear | Clear the screen. | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a d | detach | Detach screen from this terminal. | | | C-a d | detach | Detach screen from this terminal. | |
| C-a C-d | | | | | C-a C-d | | | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a D D | pow_detach | Detach and logout. | | | C-a D D | pow_detach | Detach and logout. | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a f | flow | Toggle flow on, off or auto. | | | C-a f | flow | Toggle flow on, off or auto. | |
| C-a C-f | | | | | C-a C-f | | | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a F | fit | Resize the window to the current | | | C-a F | fit | Resize the window to the current | |
| | | region size. | | | | | region size. | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a C-g | vbell | Toggles screen's visual bell mode. | | | C-a C-g | vbell | Toggles screen's visual bell mode. | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a h | hardcopy | Write a hardcopy of the current window | | | C-a h | hardcopy | Write a hardcopy of the current window | |
| | | to the file "hardcopy.n". | | | | | to the file "hardcopy.n". | |
| | | | (logguer ce qui passe à l'écran dans | |
| | | | un fichier $HOME/screenlog.XX) | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a H | log | Begins/ends logging of the current | | | C-a H | log | Begins/ends logging of the current | |
| | | window to the file "screenlog.n". | | | | | window to the file "screenlog.n". | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a i | info | Show info about this window. | | | C-a i | info | Show info about this window. | |
| C-a C-i | | | | | C-a C-i | | | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a k | kill | Destroy current window. | | | C-a k | kill | Destroy current window. | |
| C-a C-k | | | | | C-a C-k | | | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a l | redisplay | Fully refresh current window. | | | C-a l | redisplay | Fully refresh current window. | |
| C-a C-l | | | | | C-a C-l | | | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a L | login | Toggle this windows login slot. | | | C-a L | login | Toggle this windows login slot. | |
| | | Available only if screen is configured | | | | | Available only if screen is configured | |
| | | to update the utmp database. | | | | | to update the utmp database. | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a m | lastmsg | Repeat the last message displayed in | | | C-a m | lastmsg | Repeat the last message displayed in | |
| C-a C-m | | the message line. | | | C-a C-m | | the message line. | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a M | monitor | Toggles monitoring of the current win. | | | C-a M | monitor | Toggles monitoring of the current win. | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a [space] | next | Switch to the next window. | | | C-a [space] | next | Switch to the next window. | |
| C-a n | | | | | C-a n | | | |
| C-a C-n | | | | | C-a C-n | | | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
|C-a N | number | Show the number (and title) of the | | |C-a N | number | Show the number (and title) of the | |
| | | current window. | | | | | current window. | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a [backsp] | prev | Switch to the previous window | | | C-a [backsp] | prev | Switch to the previous window | |
| C-a h | | opposite of C-a n. | | | C-a h | | opposite of C-a n. | |
| C-a p | | | | | C-a p | | | |
| C-a C-p | | | | | C-a C-p | | | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a q | xon | Send a control-q to the current win. | | | C-a q | xon | Send a control-q to the current win. | |
| C-a C-q | | | | | C-a C-q | | | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a Q | only | Delete all regions but the current one.| | | C-a Q | only | Delete all regions but the current one.| |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a r | wrap | Toggle the current window's line-wrap | | | C-a r | wrap | Toggle the current window's line-wrap | |
| C-a C-r | | setting (turn the current window's | | | C-a C-r | | setting (turn the current window's | |
| | | automatic margins on and off). | | | | | automatic margins on and off). | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a s | xoff | Send a control-s to the current window.| | | C-a s | xoff | Send a control-s to the current window.| |
| C-a C-s | | | | | C-a C-s | | | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a S | split | Split the current region into two new | | | C-a S | split | Split the current region into two new | |
| | | ones. | | | | | ones. | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a t | time | Show system information. | | | C-a t | time | Show system information. | |
| C-a C-t | | | | | C-a C-t | | | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a v | version | Display the version and compilation | | | C-a v | version | Display the version and compilation | |
| | | date. | | | | | date. | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a C-v | digraph | Enter digraph. | | | C-a C-v | digraph | Enter digraph. | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a w | windows | Show a list of window. | | | C-a w | windows | Show a list of window. | |
| C-a C-w | | | | | C-a C-w | | | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a W | width | Toggle 80/132 columns. | | | C-a W | width | Toggle 80/132 columns. | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a x | lockscreen | Lock this terminal. | | | C-a x | lockscreen | Lock this terminal. | |
| C-a C-x | | | | | C-a C-x | | | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a X | remove | Kill the current region. | | | C-a X | remove | Kill the current region. | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a z | suspend | Suspend screen. Your system must | | | C-a z | suspend | Suspend screen. Your system must | |
| C-a C-z | | support BSD-style job-control. | | | C-a C-z | | support BSD-style job-control. | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a Z | reset | Reset the virtual terminal to its | | | C-a Z | reset | Reset the virtual terminal to its | |
| | | "power-on" values. | | | | | "power-on" values. | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a . | dumptermcap | Write out a ".termcap" file. | | | C-a . | dumptermcap | Write out a ".termcap" file. | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a [ | copy | Enter copy/scrollback mode. | | | C-a [ | copy | Enter copy/scrollback mode. | |
| C-a C-[ | | | | | C-a C-[ | | (On peut se déplacer dans le screen | |
| C-a [ESC] | | | | | C-a [ESC] | | avec les flèches directionnelles) | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a ] | paste . | Write the contents of the paste buffer | | | C-a ] | paste . | Write the contents of the paste buffer | |
| | | to the stdin queue of the current win. | | | | | to the stdin queue of the current win. | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a { | history | Copy and paste a previous (command) | | | C-a { | history | Copy and paste a previous (command) | |
| C-a } | | line. | | | C-a } | | line. | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a> | writebuf | Write paste buffer to a file. | | | C-a> | writebuf | Write paste buffer to a file. | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a < | readbuf | Reads the screen-exchange file into | | | C-a < | readbuf | Reads the screen-exchange file into | |
| | | the paste buffer. | | | | | the paste buffer. | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a = | removebuf | Removes the file used by C-a <and | | | C-a = | removebuf | Removes the file used by C-a <and | |
| | | C-a> | | | | | C-a> | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a , | license | Shows where screen comes from, where | | | C-a , | license | Shows where screen comes from, where | |
| | | it went to and why you can use it. | | | | | it went to and why you can use it. | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a _ | silence | Start/stop monitoring the current | | | C-a _ | silence | Start/stop monitoring the current | |
| | | window for inactivity. | | | | | window for inactivity. | |
'--------------+---------------+----------------------------------------' | '--------------+---------------+----------------------------------------' |
| C-a * | displays | Show a listing of all currently | | | C-a * | displays | Show a listing of all currently | |
| | | attached displays. | | | | | attached displays. | |
'--------------'---------------'----------------------------------------' | '--------------'---------------'----------------------------------------' |
| |