Xfce Wiki

Sub domains
 

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
apps:terminal:usage [2012/01/05 09:11] – [To paste text into a terminal] nickapps:terminal:usage [2019/11/28 11:14] – [To open and close terminals] kevinbowen
Line 1: Line 1:
 +{{ :apps:terminal:terminal.png?nolink|}}
 ====== Usage ====== ====== Usage ======
  
 ===== To open and close terminals ===== ===== To open and close terminals =====
  
-==== To open a new terminal window ==== +To open a new terminal window 
-Choose {gui>File>Open Terminal} (or right-click the terminal window and choose {gui>Open Terminal}).+Choose {gui>File>Open Terminal} (or right-click the terminal window and choose {gui>Open Terminal}). 
 +! The new terminal by default inherits the working directory from its parent terminal (may be changed via [[advanced|hidden options]]).
  
-The new terminal inherits the working directory from its parent terminal.+? To close a terminal window 
 +! Choose {gui>File>Close Window}. 
 +! This action closes the terminal and terminates any subprocesses that you opened from the terminal. If you close the last terminal window, the application exits.
  
-==== To close a terminal window ==== +To add a new tabbed terminal to a window 
- +Choose {gui>File>Open Tab} (or right-click the terminal window and choose {gui>Open Tab}). 
-Choose {gui>File>Close Window}. +The new terminal by default inherits the working directory from the previously active terminal.
-This action closes the terminal and terminates any subprocesses that you opened from the terminal. If you close the last terminal window, the Terminal application exits. +
- +
-==== To add a new tabbed terminal to a window ==== +
- +
-Choose {gui>File>Open Tab} (or right-click the terminal window and choose {gui>Open Tab}). +
-The new terminal inherits the working directory from the previously active terminal.+
  
 +----
 ===== To modify a terminal window ===== ===== To modify a terminal window =====
  
-==== To hide the menubar ==== +To hide the menubar 
-Choose {gui>View>Show Menubar} (or right-click the terminal window and choose {gui>Show Menubar}).+Choose {gui>View>Show Menubar} (or right-click the terminal window and choose {gui>Show Menubar}).
  
-==== To show a hidden menubar ==== +To show a hidden menubar 
-Right-click the terminal window and choose {gui>Show Menubar} from the popup menu.+Right-click the terminal window and choose {gui>Show Menubar} from the popup menu.
  
-==== To show or hide the toolbars ==== +To show or hide the toolbar 
-Choose {gui>View>Show Toolbars}.+Choose {gui>View>Show Toolbar}.
  
-==== To customize the toolbars ==== +To show or hide the window decorations 
-Be sure to show the toolbars first; then choose {gui>Edit>Toolbars...}.+! Choose {gui>View>Show Window Borders}.
  
-==== To show or hide the window decorations ==== +To put a terminal window into fullscreen mode 
-Choose {gui>View>Show Window Borders}.+Choose {gui>View>Fullscreen} from the menubar (or right-click the terminal window and choose {gui>Fullscreen}).
  
-==== To put a terminal window into fullscreen ==== +To change the appearance of the terminal window 
-Choose {gui>View>Fullscreen} from the menubar (or right-click the terminal window and choose {gui>Fullscreen}).+! See the section called [[preferences|Preferences]] for information about the options that you choose in the Xfce Terminal Preferences dialog to change the appearance and behavior of the terminal windows. For example, you can change the background color or the location of the scrollbar.
  
-==== To change the appearance of the terminal window ==== 
-See the section called [[preferences|Preferences]] for information about the options that you choose in the Terminal Preferences dialog to change the appearance and behaviour of the terminal windows. For example, you can change the background color or the location of the scrollbar. 
  
 ===== To work with the contents of terminal windows ===== ===== To work with the contents of terminal windows =====
  
-==== To scroll through previous commands and output ====+To scroll through previous commands and output
  
-Perform one of the following actions+Perform one of the following actions
   * Use the scrollbar, which is usually displayed on the right side of each terminal window.   * Use the scrollbar, which is usually displayed on the right side of each terminal window.
-  * Press the {key>Shift+Page Up}, {key>Shift+Page Down}, {key>Shift+Up}, {key>Shift+Down}, {key>Shift+Home}, or Shift+End} keys.+  * Press the {key>Shift+Page Up}, {key>Shift+Page Down}, {key>Shift+Up} ({key>Ctrl+Shift+Up} in 0.8.0), {key>Shift+Down} ({key>Ctrl+Shift+Down} in 0.8.0), {key>Shift+Home}, or {key>Shift+End} keys.
   * Use the middle wheel button on your mouse if applicable.   * Use the middle wheel button on your mouse if applicable.
-Terminal mimics the FreeBSD console when Scroll Lock is pressed. When scroll lock is active, ordinary input and output from the shell is suspended and you can scroll through the history with {key>Shift+Page Up} and {key>Shift+Page Down} or using the optional scrollbar. Press {key>Ctrl+S} to activate the scroll lock and {key>Ctrl+Q} to disable it afterwards. +Terminal mimics the FreeBSD console when Scroll Lock is pressed. When scroll lock is active, ordinary input and output from the shell is suspended and you can scroll through the history with {key>Shift+Page Up} and {key>Shift+Page Down} or using the optional scrollbar. Press {key>Ctrl+S} to activate the scroll lock and {key>Ctrl+Q} to disable it afterwards. 
-The number of lines that you can scroll back in the terminal window is determined by the {gui>Scrollback} setting in the {gui>General} section of the Terminal [[preferences|Preferences]] dialog.+The number of lines that you can scroll back in the terminal window is determined by the {gui>Scrollback} setting in the {gui>General} section of the Terminal [[preferences|Preferences]] dialog.
  
-==== To select and copy text ==== +To select and copy text 
-You can select text in any of the following ways:+You can select text in any of the following ways:
   * To select a character at a time, click on the first character that you want to select and drag the mouse to the last character that you want to select.   * To select a character at a time, click on the first character that you want to select and drag the mouse to the last character that you want to select.
   * To select a word at a time, double-click on the first word that you want to select and drag the mouse to the last word that you want to select.   * To select a word at a time, double-click on the first word that you want to select and drag the mouse to the last word that you want to select.
   * To select a line at a time, triple-click on the first line that you want to select and drag the mouse to the last line that you want to select.   * To select a line at a time, triple-click on the first line that you want to select and drag the mouse to the last line that you want to select.
-These actions select all text between the first and last items. For all text selections, Terminal copies the selected text into the clipboard when you release the mouse button. To explicitly copy the selected text, choose {gui>Edit>Copy}. +These actions select all text between the first and last items. For all text selections, Terminal copies the selected text into the clipboard when you release the mouse button. To explicitly copy the selected text, choose {gui>Edit>Copy}.
- +
-==== To paste text into a terminal ==== +
- +
-If you previously copied text to the clipboard, you can paste the text into a terminal by performing one of the following actions:+
  
 +? To paste text into a terminal
 +! If you previously copied text to the clipboard, you can paste the text into a terminal by performing one of the following actions:
   * To paste text that you copied by selection only, middle-click at the command prompt. If you do not have a middle mouse button, refer to the X Server documentation for information about how to emulate the middle mouse button. This is equivalent to using the {gui>Edit>Paste Selection}.   * To paste text that you copied by selection only, middle-click at the command prompt. If you do not have a middle mouse button, refer to the X Server documentation for information about how to emulate the middle mouse button. This is equivalent to using the {gui>Edit>Paste Selection}.
   * To paste text that you explicitly copied, choose {gui>Edit>Paste}.   * To paste text that you explicitly copied, choose {gui>Edit>Paste}.
  
-==== To drag a file name into a terminal window ==== +To drag a file name into a terminal window 
- +You can drag a file name to a terminal from another application such as a file manager or a web browser. The terminal displays the path and the full name of the URI.
-You can drag a file name to a terminal from another application such as a file manager or a web browser. The terminal displays the path and the full name of the URI. +
- +
-==== To access a hyperlink ==== +
- +
-To access a Uniform Resource Locator (URL) that is displayed in a terminal window, perform the following steps: +
  
 +? To access a hyperlink
 +! To access a Uniform Resource Locator (URL) that is displayed in a terminal window, perform the following steps: 
   * Move the mouse over the URL until the URL is underlined.   * Move the mouse over the URL until the URL is underlined.
   * Right-click on the URL to open the context menu.   * Right-click on the URL to open the context menu.
-  * Choose {gui>Open Link} from the context menu to start your preferred Web Browser and display the file located at the URL. +  * Choose {gui>Open Link} from the context menu to start your preferred Web Browser and display the file located at the URL. Since 0.8.0you can also use {key>Ctrl}-click for that.
- +
-==== To compose an email ==== +
- +
-To compose an email to an address that is displayed in a terminal windowperform the following steps: +
  
 +? To compose an email
 +! To compose an email to an address that is displayed in a terminal window, perform the following steps: 
   * Move the mouse over the email address until the email address is underlined.   * Move the mouse over the email address until the email address is underlined.
   * Right-click on the email address to open the context menu.   * Right-click on the email address to open the context menu.
   * Choose {gui>Compose Email} from the context menu to compose an email in your preferred Mail Reader.    * Choose {gui>Compose Email} from the context menu to compose an email in your preferred Mail Reader. 
 +
  
 ===== To change the terminal title ===== ===== To change the terminal title =====
Line 98: Line 89:
   * Click the button {gui>Close} or press the {gui>Return} key to close the {gui>Set Title} dialog.   * Click the button {gui>Close} or press the {gui>Return} key to close the {gui>Set Title} dialog.
  
-To reset the terminal title to its default behaviour, perform the same three steps as described above, but enter an empty title.+To reset the terminal title to its default behavior, perform the same three steps as described above, but enter an empty title.
  
 Terminal will substitute these tokens: Terminal will substitute these tokens:
Line 111: Line 102:
 This section provides some advice if you have problems with terminals. This section provides some advice if you have problems with terminals.
  
-==== To reset the state of the terminal ==== +To reset the terminal 
- +! This will reset the internal state of the terminalChoose {gui>Terminal>Reset}.
-  * Choose {gui>Terminal>Reset}. +
-  * Run the ''reset'' command. +
- +
-==== To reset the terminal and clear the terminal screen ==== +
- +
-  * Choose {gui>Terminal>Reset and Clear}. +
-  * You can also use the shell commands ''reset'' and ''clear''+
- +
-===== To customize the toolbars ===== +
- +
-As already mentioned, Terminal includes support for customizable toolbars. The toolbars are disabled by default, you will have to explicitly enable it. Choose {gui>View>Show Toolbars} from the menubar to display the toolbars in the current window. If you want to permanently use the toolbars, see the section called [[preferences#appearance|Appearance]]. +
- +
-Once the toolbars are shown, choose {gui>Edit>Toolbars...} from the menubar or right-click one of the toolbars and choose {gui>Customize Toolbar...} from the context menu. This opens the //Toolbar Editor// window, which allows you to customize the toolbars in the current terminal window. +
- +
-<figure "To customize the toolbars"> +
-{{:apps:terminal:terminal-toolbars.png?nolink&|}} +
-</figure>+
  
-Just drag an item from the //Toolbar Editor// window and drop it on a toolbar to add that item to the specific toolbar or drag an item from a toolbar to the //Toolbar Editor// to remove it from the toolbar. You can add additional toolbars by clicking the button {gui>Add a new toolbar} and remove toolbars by right-clicking the toolbar and selecting {gui>Remove Toolbarfrom the context menu. You can also choose a different style for a toolbar from the context menu.+? To reset the terminal and clear the terminal screen 
 +! Choose {gui>Terminal>Clear Scrollbar and Reset}. You can also use the shell commands ''reset'' and ''clear''.
  
 ===== To switch between different encodings ===== ===== To switch between different encodings =====
  
-Terminal itself does not (yet) include builtin support for switching encodings on the fly in a terminal sessionBut since Terminal implements an UTF-8 mode, you can use the [[http://www.pps.jussieu.fr/~jch/software/luit/|Luit application]] to switch between different character encodings within a terminal session.+  * Choose {gui>Terminal>Set Encoding} and select your preferred encoding from the menu. This only applies to the active terminal. 
 +  * Select a default encoding in the {gui>Advanced} section of the Terminal [[preferences|Preferences]] dialog.