Az oldal fordítása még folyamatban van. Amíg tart a fordítás, addig a lefordítatlan részek angolul jelennek meg.
Index
Windows and tabs
Settings
Colors
Keyboard shortcuts
Hints for working with the Terminal
Bash customization

terminal-icon_64.pngTerminál (Terminal)

Asztalsáv:Alkalmazások
Útvonal:/boot/system/apps/Terminal
Beállítások:~/config/settings/Terminal
~/config/settings/profile - a /boot/system/settings/etc/profile fájl kibővítése/felülírása
~/config/settings/inputrc - a /boot/system/settings/etc/inputrc fájl kibővítése/felülírása


A Terminál a Haiku bash (Bourne Again Shell) felületete.

Ehhez kapcsolódik a Bash és szkriptek (néhány internet hivatkozás, leírások) és a Haiku-specifikus parancssori programok témakör. Itt most csak magára, a Terminálra koncentrálunk.

index Ablakok és lapok

Szükség szerint bármennyi Terminál elindítható vagy a program újbóli elindításával, vagy pedig az ALT N kombinációval egy már futó programból. Továbbá fülek/lapok is használhatóak, amit az ALT T lenyomásával adhatunk egy meglévő ablakhoz.

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.

A lap-füleken jobb gombbal kattintva kapunk egy menüt: Lap bezárása, Többi lap bezárása vagy Lap címének szerkesztése... (épp úgy, mint dupla kattintáskor).

A Terminál ablak épp úgy méretezheztő, mint bármely más ablak. Ugyanakkor előre beállított méretet is választhatunk a Beállítások | Ablak mérete menüből. Az ALT ENTER lenyomásakor pedig teljes képernyőre válthatunk.

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 Beállítások

A Beállítások | Beállítások... menü megnyit egy panelt, ahol a Terminál alapbeállíátsai módosíthatóak.

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.

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

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.

Save to file… 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.
Visszaállít brings back the colors that were active when you opened the colors panel.
Eredeti resets everything to default values.

index Billentyűzet parancsok

A hasznos kombinációk listája a Billentyűzet-kombinációk fejezetben található.

A Terminál tartalmaz egy remek funkciót, ami több, mint egy egér-billentyű kombináció: Az ALT lenyomásakor a kurzor alatti útvonal illetve URL kiemelésre kerül. A bal egérgomb lenyomásakor megnyílik a kiemelt útvonal vagy oldal. Jobb egérgombbal az alábbi lehetőségeket kapjuk: Útvonal másolása vagy Teljes útvonal másolása. Gondoljunk bele, hogy most a /MyData/source/haiku/ mappában vagyunk és a kurzor alatt a generated/objects/haiku/x86_gcc2/release/apps/stylededit/StyledEdit útvonal található. Az utóbbi lehetőség használata az útvonalak összefűzését eredményezi, vagyis a teljes elérési útvonalat:
/MyData/source/haiku/generated/objects/haiku/x86_gcc2/release/apps/stylededit/StyledEdit.

Az ALT SHIFT lenyomásával az egér pozícióig kerül kiemelésre az útvonal.

Jobb kattintással a vágólap tartalma kerül a Terminál ablakba. Ezt kombinálva az útvonalak kiemelésével gyorsan navigálhatunk a hierarchiában mélyebben lévő mappákba is.

index Javaslatok a Terminállal való munkához

index Bash személyre szabása

Számtalan lehetőség van a bash konfigurálására. Két fájl kifejezetten fontos a felhasználók számára: profile és inputrc
Mind a kettőt a /boot/home/config/settings/ mappában kell létrehozni, és a /boot/system/settings/etc/ mappában lévő eredeti fájlok tartalmát átmásolni az újonnan létrehozottakba.

profile

A profile minden alkalommal betöltődik mikor egy új Terminált nyitunk meg. Ebben minden, a bash-el kapcsolatos működési és megjelenítési beállítás megtalálható. További információk találhatóak az interneten.

A Haiku/BeOS Tip Server is tartalmaz néhány ötletet, amin elindulhatunk. Például:

There are more, have a look.

inputrc

Az inputrc-vel billentyű-módosításokat hajthatunk végre. Mivel a Haiku a leghasznosabb alap beállításokat használja, így valószínű, hogy nem kell ezzel foglalkoznunk. Ha valami speciális dologra van szükségünk, akkor az interneten kapunk információt, például a The GNU Readline Library oldalon.