La traducción de esta página aún no está completa. Hasta que lo esté, las partes sin traducir se muestran en el original en inglés.
Index
Windows and tabs
Settings
Colors
Keyboard shortcuts
Hints for working with the Terminal
Bash customization

terminal-icon_64.pngTerminal

Barra de escritorio:Aplicaciones
Ubicación:/boot/system/apps/Terminal
Configuraciones:~/config/settings/Terminal
~/config/settings/profile - agrega/sobrescribe predeterminados en /boot/system/etc/profile
~/config/settings/inputrc - agrega/sobrescribe predeterminados en /boot/system/etc/inputrc


La Terminal es la interfaz de Haiku al bash, el intérprete de comandos Bourne Again (Bourne Again Shell por sus siglas en inglés).

Por favor refiérase al tema Scripting para ver algunos enlaces a tutoriales en línea sobre trabajo en el intérprete de comandos y también vea las aplicaciones de línea de comandos de Haiku. Aquí nos concentraremos en la aplicación Terminal.

index Ventanas y fichas

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 Settings | Window title… the Terminal window's title can be edited in a similar way.

Un clic derecho en una ficha muestra un menú contextual para Cerrar pestaña, Cerrar otras pestañas o, igual que dar doble clic, Editar título de pestaña…

Se puede cambiar el tamaño de una ventana de Terminal igual que cualquier otra ventana o puede usar los ajustes preestablecidos desde el menú Settings | Window Size (Configuración | Ventana). ALT ENTER alterna el modo de 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 either invoke Save as default or apply them in the Settings… panel.

index Configuración

Configuración | Configuración… abre un panel para configurar los ajustes estándar de una Terminal.

terminal-settings.png

Most of the offered settings speak for themselves. Not entirely obvious though, the font size is set in the submenu of the Font popup menu.
Hover your mouse over the "formulas" for naming tab and window titles to get tooltips for the available variables.

A few more options follow: you can have a Blinking cursor and choose to Allow bold text.
Use left Option as Meta key if you work with certain UNIX software that relies on accessing an extended portion of the ASCII character set, like e.g. GNU Emacs and the GNU readline library.
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.

Guardar a archivo… Le permite guardar configuraciones diferentes como perfiles separados, que cuando les hace doble clic abrirán una Terminal configurada de manera acorde.
Revertir regresa la configuración que estaba activa cuando abrió el panel de configuración previamente.
Valores predeterminados restablece todo a los valores predeterminados.

index Colors

Settings | Colors… opens a panel to configure the colors used by Terminal.

terminal-colors.png

From the top menu, you can choose a pre-defined Color scheme like Midnight or Retro or create a Custom one by selecting the color you want to change (Text, Background, Cursor etc.) and then use the color picker below.

You can also configure "ANSI colors", which are the first 8 named colors in the color palette of terminal applications. You choose a color, for example "ANSI red color", and then adjust it with the color picker below. The effect is visible live in the open Terminal and in the preview below. The exact colors used in various places are documented at Wikipedia.

Guardar a archivo… let's you save your custom color scheme under a name that will appear in the Color scheme menu at the top, if you put it in the default location ~/config/settings/Terminal/Theme.
Revertir brings back the colors that were active when you opened the colors panel.
Valores predeterminados restablece todo a los valores predeterminados.

index Accesos de teclado

Encontrará una lista de atajos útiles en Métodos abreviados y combinaciones de teclas.

Otra característica agradable que es más una combinación e teclado y ratón: Cuando mantiene presionado ALT se resaltará una ruta o URL que esté bajo el puntero del ratón. Un clic izquierdo abre el archivo/carpeta o sitio web. Un clic derecho abre un menú contextual para ya sea Copiar la ruta o Copiar la ruta absoluta. Imagine que se encuentra ubicado en /MisDatos/source/haiku/ y tiene la ruta generated/objects/haiku/x86_gcc2/release/apps/stylededit/StyledEdit bajo el puntero del ratón, el último menú le mostrará la ruta absoluta, combinada <respiro profundo>:
/MisDatos/source/haiku/generated/objects/haiku/x86_gcc2/release/apps/stylededit/StyledEdit.

Si mantiene presionadas ALT SHIFT, será resaltada la ruta desde el inicio sólo hasta donde tiene el puntero.

A propósito, dar clic con el botón derecho en la Terminal insertará el contenido del portapapeles. Si se hace en combinación con copiar partes de rutas resaltadas, esto se puede usar para navegación acelerada de jerarquías de directorios profundos.

index Pistas para trabajar con la Terminal

index Personalización de Bash

Viniendo de Unix, hay incontables posibilidades para personalizar al propio Bash. Hay dos archivos que son especialmente importantes para el usuario: profile y inputrc
Ambos archivos pueden crearse en la carpeta /boot/home/config/settings/ y agregar o sobrescribir los predeterminados del sistema que se definen en /boot/system/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 (en inglés).

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., la GNU Readline Library (La biblioteca de lectura en línea de GNU, en inglés).