La traducción de esta página no está completa aún. Hasta que esté, las partes sin terminar vienen en su inglés original.

terminal-icon_64.pngTerminal

Deskbar:Aplicaciones
Ubicación:/boot/system/apps/Terminal
Configuración:~/config/settings/Terminal
~/.profile - adds/overrides defaults in /boot/system/settings/etc/profile
~/.inputrc - adds/overrides defaults in /boot/system/settings/etc/inputrc


La Terminal es la interfaz de Haiku a Bash, un intérprete de comandos (Bourne Again Shell en inglés).

Please refer to the topic on Scripting for a few links to online tutorials on working in the shell and also have a look at Haiku's commandline applications. Here, we'll concentrate on the Terminal application itself.

index Windows and tabs

Puede abrir tantas Terminales como se necesite, cada una de ellas en su propia ventana simplemente abriendo más Terminales o con ALT N desde una Terminal que ya esté corriendo. O puede usar la vista por pestañas de Terminal y abrir otra pestaña con ALT T.

terminal.png

Double-clicking into the emtpy part of the tab bar opens a new tab; onto a tab opens a dialog to rename its title. There are several %-designated variables that are explained with a tooltip when you hover the mouse over the text field.
By default, %1d: %p, a tab shows the current directory and, separated by a :, the name of the currently running process (or -- if it's just bash running, probably idling). The screenshot above shows the first tab with a FTP session in the Desktop folder and a second tab idling at home.
Via Edit | Window title... the Terminal window's title can be edited in a similar way.

Right-clicking a tab shows a context menu to Close tab, Close other tabs or, like double-clicking, Edit tab title....

Una ventana de Terminal se puede retamañar como cualquier o puede usar los ajustes preestablecidos desde el menú Settings | Window Size (Selecciones | Ventana). ALT ENTER habilita o deshabilita el modo a pantalla completa.

All the settings you change directly through the Settings menu, like Window title, Window size, Text encoding or Font size are only kept for the current session. If you want to make permanent changes, you have to apply them in the Settings... panel.

index Settings

Settings | Settings... opens a panel to configure the standard settings of a Terminal.

terminal-settings.png

Most of the offered settings speak for themselves.
Hover your mouse over the "formulas" for naming tab and window titles to get tooltips for the available variables.
You can choose pre-defined color schema like Midnight or Retro or create a Custom one by selecting which color you want to change (Text, Background, Cursor etc.) and then use the color picker below.

A few more options follow: you can have a Blinking cursor and choose to Use bright instead of bold text. The latter setting avoids the sometimes rather unsightly rendering of bold fonts in the Terminal.
Activate the checkbox to Confirm exit if active programs exist and you'll be warned when trying to close a Terminal window while an app is still being executed.

Save to file... let's you save different settings as separate profiles, which on double-click open an accordingly configured Terminal.
Revert brings back the settings that were active when you opened the settings panel.
Defaults resets everything to default values.

index Atajos de teclado

Encontrará una lista de atajos útiles en Atajos y combinaciones de teclas.

Another nice feature that is more a key & mouse combination: When holding ALT a path or URL under the mouse pointer gets highlighted. A left-click opens the file/folder or website. A right-click opens a context menu to either Copy path or Copy absolute path. Imagine you're in /MyData/source/haiku/ and have the path generated/objects/haiku/x86_gcc2/release/apps/stylededit/StyledEdit under the mouse pointer, the latter menu item will result in the combined, absolute path <deep breath>:
/MyData/source/haiku/generated/objects/haiku/x86_gcc2/release/apps/stylededit/StyledEdit.

If you hold down ALT SHIFT, only the path from beginning to where your mouse pointer sits will be highlighted.

By the way, right-clicking into the Terminal window will insert the clipboard. In combination with copying parts of highlighted paths, this can be used for speedy navigation of deep folder hierarchies.

index Personalización de 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/settings/etc/.

.profile

El archivo .profile se caraga cada vez que se abre una Terminal nueva. Selecciona toda clase de "aliases" y variables que afectarán el comportamiento y apariencia de Bash. Encontrará muchos recursos en línea que detallen todas las posibilidades.

El "Haiku/BeOS Tip Server" (Servidor de consejos de Haiku/BeOS, en inglés) tiene bastantes consejos para iniciar, por ejemplo:

Y hay más, déle un vistazo.

.inputrc

El archivo .inputrc trata con teclas de acceso rápido. Ya que Haiku proporciona predeterminados útiles, probablemente no tenga que lidiar con estas selecciones más envueltas. Si tiene necesidades especiales aquí, consulte alguno de los vastos recursos en línea, p. ej., The GNU Readline Library (La biblioteca de lectura en línea de GNU, en inglés).

index Pistas para trabajar con la Terminal