Terminal
Deskbar : | ||
Localisation : | /boot/system/apps/Terminal | |
Réglages : | ~/config/settings/Terminal ~/.profile - ajoute/remplace les paramètres /boot/system/etc/profile par défaut. ~/.inputrc - ajoute/remplace les paramètres /boot/system/etc/inputrc par défaut. |
Le Terminal est l'interface de Haiku à bash, le Bourne Again Shell.
Please refer to the topic on Scripting for a few links to online tutorials on working in the shell. Here, we'll concentrate on the Terminal application itself.
Apparence
You can open as many Terminals as needed, either each in it's own window by simply launching more Terminals or with ALT N from an already running Terminal. Or you use Terminal's tabbed view and open another tab with ALT T.
Une fenêtre du Terminal peut être redimensionnée comme toute autre fenêtre ou en utilisant le menu ALT ENTRÉE permet de basculer en mode plein écran.
.Changed window size and text encoding are only kept choosing
.
Pressing will save the current settings as default.
Personnalisation du Bash
Coming from Unix, there are countless possibilities to customize the bash itself. There are two files that are especially important to the user: .profile and .inputrc
Both files can be created in the home/ folder and add or override the system defaults that are defined in /boot/system/etc/.
.profile
The .profile is loaded every time you open a new Terminal. It sets all kinds of aliases and variables that will affect bash's behavior and appearance. You'll find many online resources that will detail all possibilities.
The Haiku/BeOS Tip Server has quite a few tips to get you started, for example:
There are more, have a look.
.inputrc
The .inputrc deals with keybindings. Since Haiku provides useful defaults, you probably don't have to mess with these more involved settings. If you do have special needs here, consult one of the many online resources, e.g. The GNU Readline Library.
Raccourcis claviers
Vous trouverez une liste des raccourcis utiles dans Raccourcis clavier.
Conseils pour travailler dans le Terminal
Dragging a file or folder from a Tracker window into the Terminal will insert its path at the location of the cursor. Dragging with the right mouse button offers additional actions in a context menu:
Inserts the location of the file, same as drag&dropping with the left mouse button. Changes to the folder of the dragged file. Creates a link to the dragged file in the current working directory of the Terminal. Moves the dragged file into the current working directory of the Terminal. Copies the dragged file into the current working directory of the Terminal. You can open any file with its preferred application with the command open [filename]. This also works with the representation of the current (".") and parent ("..") folder which then open in a Tracker window. So, to open the current working directory, you type:
open .