Linux's screen command is good. if you get used to it, you will think it is much better than windows's Taskbar. below is my screenrc, which is for your reference only .~ The screen is not displayed when screenrc is started.
Linux's screen command is good. if you get used to it, you will think it is much better than windows's Taskbar. below is my. screenrc, which is for your reference only.
- #
- #~ /. Screenrc
- #
- # Do not display the welcome screen at startup
- Startup_message off
- # Define the function key of screen as Ctrl-Z. Press Ctrl-Z when entering Ctrl-Z into the terminal.
- Escape ^ Zz
- #1024 rows in the screen buffer.
- Defscrollback 1024
- # Display the window list and clock in the bottom row
- Hardstatus on
- Hardstatus alwayslastline
- Hardstatus string "% {. bW} %-w % {. rY} % n % t % {-} % w % = % {.. g} % H (% l) % {.. y} % Y/% m/% d % c: % s"
- # Disable error message
- Vbell off
- # Press Ctrl-Z w or Ctrl-Z Ctrl-W to display the window list
- Bind w windowlist-B
- Bind ^ w windowlist-B
Common shortcut keys
Note: These shortcut keys must be used after the escape key is pressed. the default escape key is Ctrl-A, which is pasted above. in screenrc, change it to Ctrl-Z. for example, d. in actual operation, press Ctrl-Z d.
Shortcut key
D. interrupt the current session. you can use the screen-r command to restore the session.
C. New window
0-9 numbers quickly switch between 0-9 Windows
N next window
P in the previous window
S split screen
TAB switches between split screens
X turn off the split screen
[Enter the copy mode, move the cursor with hjkl, select the start point with a space, and then press the space to select the end point for copying.
] Paste
? Help
: Enter the screen command line
The following are some common tips:
Repeat the escape key to quickly switch between the current window and the previous window, for example, switching from window 1 to window 3 by pressing ^ Z3, then switch between window 1 and window 3 by pressing ^ Z.
Use of window segmentation: Split by ^ ZS (S should be capitalized), switch to the split screen with ^ Z, and then use ^ Z <数字> Switch the window in the new screen and use ^ ZX to end the split.
Page flip:After screen is used, you cannot use Shift-PageUp or Shift-PageDown to flip pages. You can press ^ Z [to enter the copy mode. you can use the same shortcut key as vi to view the history page. Finally, press Esc to cancel the copy mode.
Selection of the escape key:
The default Ctrl-A conflicts with the add 1 function of vi. If you are used to Ctrl-A Unfortunately, when you use vim without screen, you will inadvertently press Ctrl-A to change the number nearby. Therefore, it is best to change it to another key.
Frequently used screen shortcuts are on the left hand side. Therefore, escape should be placed on the left side of the keyboard in three columns. Ctrl-Q and Ctrl-S cannot be bound when they are used by the terminal. Ctrl-'screen is not supported. Ctrl-W conflicts with the Switch window command of vim, and Ctrl-D conflicts with pages of vim, ctrl-X conflicts with vim's minus 1 function, Ctrl-E conflicts with vim's scrolling screen, and Ctrl-C is a very common program to stop. Therefore, only Ctrl-Z can be used. Ctrl-Z is used to pause the program. it is not commonly used. you can set it to the screen escape key. Press Ctrl-Z z to pause the program.