Konsole

alternate text

Konsole is an X terminal emulator, often referred to as a terminal or a shell. It emulates a command line interface in a text only window.
Konsole typically runs a command shell, an application that executes commands that you type.
The shell the Konsole runs depends on your account settings. Consult your operating system
documentation to know what the shell is, how to configure it and how to use it.
1.2 Scrollback
Konsole uses the notion of scrollback to allow users to view previously displayed output. By
default, scrollback is on and set to save 1000 lines of output in addition to what is currently
displayed on the screen.
As lines of text scroll off the top of the screen, they can be reviewed by moving the scroll bar
upwards, scrolling with a mouse wheel or through the use of the Shift+Page Up (to move back),
Shift+Page Down (to move forward), Shift+Up Arrow (to move up a line) and Shift+Down
Arrow (to move down a line) keys.
The amount of scrolling using Shift+Page Up/Down can be switched between half and full page
in the Scrolling tab of the profile configuration window (use Settings → Edit Current Profile...
to open this window).
1.3 Profiles
Profiles allow the user to quickly and easily automate the running of common commands. Examples could include:
• ssh into another machine
• starting an irc session
• use tail to watch a file
All new and changed profiles are saved in the user’s local home folder in $XDG_DATA_HOME /kon
sole.
Procedure to create a new profile:
1. Click on the menu entry Settings → Manage Profiles...
2. Click on the button New Profile....
3. Fill in the first entry with a name. This is the name that will show in the menu, and will be
the default label instead of Shell when you start a session of this type.
4. Enter a command just as you normally would if you opened a new shell and were going to
issue that command. For our first example above, you might type ssh administration.
5. On the other tabs of the dialog, configure this session’s appearance. You can configure a
different font, color scheme, $TERM type and many other settings for each session.
6. Press the OK button. The new session is now available in the Manage Profiles... dialog.
Any profiles which have Show in Menu checked will be listed by their name in the File → New
Tab menu. There will be no submenu if only the default profile is to be shown.
1.4 Mouse Buttons
This section details the use of the mouse buttons for the common right handed mouse button
order. For the left handed mouse button order, swap left and right in the text below.
Left
All left mouse button clicks will be sent to a mouse-aware application running in Konsole.
If an application will react on mouse clicks, Konsole indicates this by showing an arrow
cursor. If not, an I-beam (bar) cursor is shown.
Holding the left mouse button down and dragging the mouse over the screen with a mouseunaware
application running will mark a region of the text. While dragging the mouse, the
marked text is displayed in reversed color for visual feedback. Select Copy from the Edit
menu to copy the marked text to the clipboard for further use within Konsole or another application.

The selected text can also be dragged and dropped into compatible applications.
Hold the Ctrl key and drag the selected text to the desired location.
Normally, new-line characters are inserted at the end of each line selected. This is best for
cut and paste of source code, or the output of a particular command. For ordinary text, the
line breaks are often not important. One might prefer, however, for the text to be a stream
of characters that will be automatically re-formatted when pasted into another application.
To select in text-stream mode, hold down the Ctrl key while selecting normally.
Pressing the Ctrl and Alt keys along with the left mouse button will select text in columns.
Double-click with the left mouse button to select a word; triple-click to select an entire line.
If the upper or lower edge of the text area is touched while marking, Konsole scrolls up
or down, eventually exposing text within the history buffer. The scrolling stops when the
mouse stops moving.
After the mouse is released, Konsole attempts to keep the text in the clipboard visible by
holding the marked area reversed. The marked area reverts back to normal as soon as the
contents of the clipboard change, the text within the marked area is altered or the left mouse
button is clicked.
To mark text in a mouse-aware application (Midnight Commander, for example) the Shift
key has to be pressed when clicking.
Middle
Pressing the middle mouse button pastes text currently in the clipboard. Holding down
the Ctrl key as you press the middle mouse button pastes the text and appends a new-line.
That is convenient for executing pasted command quickly, but it can be dangerous so use it
with caution.

If you have a wheel as the middle button, rolling it in a mouse-unaware program will move
Konsole’s scrollbar.
Right
These items appear in the menu when the right mouse button is pressed:
• Copy
• Paste
• With a text selection a submenu Search for with a list of the preferred Web Shortcuts and
an option to configure web shortcuts.
• Open File Manager
• Set Encoding
• Clear Scrollback
• Adjust Scrollback...
• Show Menu Bar, only when the menubar is hidden
• Switch Profile
• Edit Current Profile...
• Close Tab
In a mouse aware application, press the Shift key along with the right mouse button to get
the popup menu.
1.5 Drag and Drop
If you drop a file, folder or URL on a Konsole window, a context menu appears with these actions:
Move Here (Shift)
Move the dropped item into the current folder. This item only appears in the context menu,
if you have the rights to delete the dropped file or folder.
Copy Here (Ctrl)
Copy the dropped item into the current folder.
Link Here (Ctrl-Shift)
Insert a symbolic link to the dropped item.
Paste Location
Insert the full file path of the dropped item at the cursor.
Change Directory To
If a folder is dropped, this action appears in the context menu and allows you to change the
working folder of the Konsole session.
Cancel (Esc)
Break the drag and drop action.
If you press the shortcuts before releasing the left mouse button during drag and drop, no context
menu appears and the actions will be executed immediately.
If you want to use the Ctrl key for drag and drop or disable the context menu to insert URLs as
text by default, enable the corresponding options on the Mouse tab in the profile settings dialog.

source: docs.kde.org/stable5/en/applications/konsole/konsole.pdf


MongoDB Logo MongoDB