Konsole/zh-tw: Difference between revisions

From KDE Wiki Sandbox
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 52: Line 52:
=== Padding ===
=== Padding ===


You can change the padding between the border and the contents of Konsole (the "margin" or "gutters" between window border and text) by editing your profile file in .local/share/konsole/[name of profile] and adding:
You can change the padding between the border and the contents of Konsole (the "margin" or "gutters" between window border and text) by editing your profile file in {{Path|.local/share/konsole/[name of profile]}} and adding:
{{Input|1=TerminalMargin=7}}
{{Input|1=TerminalMargin=7}}
The number after "TerminalMargin" can be edited to whatever size you prefer. After that you need to log out and then log in to show the changes.
The number after "TerminalMargin" can be edited to whatever size you prefer. After that you need to log out and then log in to show the changes.

Revision as of 22:10, 28 April 2019

Konsole
Konsole是KDE平臺的終端模擬器

特性預覽

  • X Terminal emulator
  • Makes using the command line easier
  • Use different profiles for different tasks
  • Set scrollback limit and save contents to file
  • Right-click on links to open in user's default web browser
  • Open current path in user's file manager
  • Translucent background available when desktop effects are enabled
  • The unique value of the environmental variable SHELL_SESSION_ID persists across all desktop sessions
Konsole是KDE平臺上的X終端模擬器,便於用戶使用命令列。除了提供使用強大shell的方法外,Konsole同樣提供很多能讓命令列操作便利和愉快的功能,比如配置檔案管理,回滾和配色方案,以及半透明效果。

Konsole同時提供一個嵌入式的 KPart終端,他被整合到YakuakeDolphinKate等程式中,在使用者操作命令列時提供給使用者一個統一相似的介面。

教學和技巧

語言

With Konsole you can change the language to plain English (to see bugs info for example) by command:

export LANG=en_US.UTF-8

快捷鍵

  • Switch tab: Shift + Left, Shift + Right (not like X-Chat, Firefox, Quanta, Kdevelop).
Note
Quanta and Kdevelop use Alt + Left, Alt + Right. However, Shift + Direction has the advantage of being reachable with one hand on virtually all keyboard layouts, while Alt keys are sometimes only on the left of the keyboard (e.g. in Germany).
  • New tab: Shift + Ctrl + T.

標籤的配置

雙擊更名

If you regularly use a lot of tabs, you'll sometimes find it convenient to label them. Just double-click on the tab and you'll get a re-name dialogue.

設定檔案管理

  • To add a new profile go to Settings -> Profile Management -> New Profile
  • On the General tab, enter the new profile name and change the icon if desired.
  • If this is to be a root konsole, enter the command /bin/su -
Tip
This command will not work on any distro that uses sudo (like Ubuntu). On such distributions use:
sudo su
or just prepend all your commands that requires superuser privileges with sudo.
  • Font size can also be changed on the Appearance tab.


Editing a profile
  • On the Manage Profiles screen you can add or remove a star, which controls whether that profile is to be offered on the File menu.

Padding

You can change the padding between the border and the contents of Konsole (the "margin" or "gutters" between window border and text) by editing your profile file in .local/share/konsole/[name of profile] and adding:

TerminalMargin=7

The number after "TerminalMargin" can be edited to whatever size you prefer. After that you need to log out and then log in to show the changes.

相關站點

Help with Development

If you are interested in helping with Konsole's development, check out how to help the Konsole team.

關鍵字

終端模擬器,命令列, CLI, shell