Site Tools


Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
terminal [2010-01-22 19:57]
asciiphil Add links to commands.
terminal [2021-02-19 19:35] (current)
Line 1: Line 1:
-===== Terminal Manipulations =====+====== Terminal Manipulations ======
  
-==== Basics ====+===== Basics =====
  
-==== Extras ====+===== Extras =====
  
 ''screen'' is flexible about flow control.  Traditionally, some terminals ''screen'' is flexible about flow control.  Traditionally, some terminals
Line 9: Line 9:
 and ''^Q'' when they want it to resume.  On the other hand, some programs and ''^Q'' when they want it to resume.  On the other hand, some programs
 (such as ''emacs'') use those keys for other purposes.  If flow control is (such as ''emacs'') use those keys for other purposes.  If flow control is
-turned on in ''screen'', ''^S'' will stop screen from sending anything+turned on in ''screen'', ''^S'' will stop ''screen'' from sending anything
 more to your terminal and ''^Q'' will resume.  Turning flow control off more to your terminal and ''^Q'' will resume.  Turning flow control off
 allows those characters to pass through to your programs.  The default allows those characters to pass through to your programs.  The default
Line 41: Line 41:
 [[man:special terminal capabilities]] that are ''screen''-specific.  See [[man:special terminal capabilities]] that are ''screen''-specific.  See
 the "Examples" section below for specific examples.  The other use is to change the "Examples" section below for specific examples.  The other use is to change
-the terminal capbilities of ''screen'''s virtual terminal.  This can be+the terminal capabilities of ''screen'''s virtual terminal.  This can be
 useful to alter how other programs interact with ''screen'', without useful to alter how other programs interact with ''screen'', without
 having to edit ''screen'''s source code and recompile.  [//This is ugly. having to edit ''screen'''s source code and recompile.  [//This is ugly.
 I need to rewrite it to make it clearer.  <PMG>//] I need to rewrite it to make it clearer.  <PMG>//]
  
 +Some programs use ANSI escape sequences to print data; this was originally used in the days when serial terminals were common, and a terminal might have a printer directly attached to it.  Any sequence starting with ''<esc>[5i'' and ending with ''<esc>\'' would cause the data between the two escape sequences to be printed.  ''screen'' supports this behavior in two ways: if the display terminal has the ''po'' and ''pf'' termcap entries (indicating that it understands printing escapes), ''screen'' will pass any print requests through to the display terminal.  Alternately, you can use the ''[[commands:printcmd]]'' command to define a program to which ''screen'' will send any print jobs.
  
-==== Keybindings ====+===== Keybindings =====
  
   * ''C-a C-b'' - (''[[commands:break]]'') Sends a break signal to the current window.   * ''C-a C-b'' - (''[[commands:break]]'') Sends a break signal to the current window.
Line 55: Line 56:
   * ''C-a r'' - (''[[commands:wrap]]'') Toggle the current window's line-wrap setting.   * ''C-a r'' - (''[[commands:wrap]]'') Toggle the current window's line-wrap setting.
   * ''C-a S'' - (''[[commands:xoff]]'') Sends an XOFF (^S) to the current window.   * ''C-a S'' - (''[[commands:xoff]]'') Sends an XOFF (^S) to the current window.
-  * ''C-a W'' - (''[[commands:width]]'') Toggle terminal between 80 and 132 columns. 
   * ''C-a Z'' - (''[[commands:reset]]'') Reset the window's terminal settings to its defaults.   * ''C-a Z'' - (''[[commands:reset]]'') Reset the window's terminal settings to its defaults.
   * ''C-a .'' - (''[[commands:dumptermcap]]'') Write out a .termcap file.   * ''C-a .'' - (''[[commands:dumptermcap]]'') Write out a .termcap file.
  
  
-==== Commands ====+===== Commands =====
  
   * ''[[commands:allpartial]]'' - Global command equivalent to setting ''[[commands:partial]]'' for all current windows.   * ''[[commands:allpartial]]'' - Global command equivalent to setting ''[[commands:partial]]'' for all current windows.
   * ''[[commands:altscreen]]'' - Enables "alternate screen" support (''ti'' and ''te'' termcap settings) for ''screen'' windows.   * ''[[commands:altscreen]]'' - Enables "alternate screen" support (''ti'' and ''te'' termcap settings) for ''screen'' windows.
   * ''[[commands:bce]]'' - Sets or toggle background-color-erase setting.   * ''[[commands:bce]]'' - Sets or toggle background-color-erase setting.
 +  * ''[[commands:breaktype]]'' - Currently a synonym for ''[[commands:defbreaktype]]''
   * ''[[commands:c1]]'' - Sets or toggles c1 code processing.   * ''[[commands:c1]]'' - Sets or toggles c1 code processing.
   * ''[[commands:charset]]'' - Change the current character set slot designation and charset mapping.   * ''[[commands:charset]]'' - Change the current character set slot designation and charset mapping.
Line 87: Line 88:
   * ''[[commands:reset]]'' - Resets the current window's virtual terminal settings to their default settings.   * ''[[commands:reset]]'' - Resets the current window's virtual terminal settings to their default settings.
   * ''[[commands:term]]'' - Changes the value of $TERM that screen passes to its windows' child processes.   * ''[[commands:term]]'' - Changes the value of $TERM that screen passes to its windows' child processes.
-  * ''[[commands:termcap]]'', ''[[commands:terminfo]]'', and ''[[commands:termcapinfo]]'' - Tweak termcap entries for either ''screen'''s interaction with the display terminal or for the virtual terminal presented to child programs.+  * ''[[commands:termcap]]'', ''[[commands:terminfo]]'', and ''[[commands:termcapinfo]]'' - Tweak termcap and/or terminfo entries for either ''screen'''s interaction with the display terminal or for the virtual terminal presented to child programs.
   * ''[[commands:utf8]]'' - Changes or toggles the encoding on the current window.   * ''[[commands:utf8]]'' - Changes or toggles the encoding on the current window.
   * ''[[commands:wrap]]'' - Sets or toggles the current window's line wrap setting.   * ''[[commands:wrap]]'' - Sets or toggles the current window's line wrap setting.
 +  * ''[[commands:xoff]]'' - Sends an XOFF (''^S'') to the current window.
 +  * ''[[commands:xon]]'' - Sends an XON (''^Q'') to the current window.
   * ''[[commands:zmodem]]'' - Sets ''screen'''s handling of zmodem communcations.   * ''[[commands:zmodem]]'' - Sets ''screen'''s handling of zmodem communcations.
  
-==== Examples ====+===== Examples =====
  
 Upon being asked to print a block of text, save it to a file in the user's home directory: Upon being asked to print a block of text, save it to a file in the user's home directory:

User Tools