20
votes
Getting 256 colors to work in tmux
For people who have latest tmux, the .tmux.conf option from the accepted answer should work.
I only want to add that you will probably need to restart tmux for the new configuration to take effect:
...
20
votes
Accepted
possible to join/attach Konsole windows?
I can not tell if and when this changed, but with Konsole 20.08.1 (I could test it on Arch Linux), detached tabs can be re-attached to their original window by:
Dragging them by their label in the ...
18
votes
Ugly Horizontal Lines Displayed in Kate and Konsole with Fractional HiDPI Scaling
Upgrading to Qt 5.12 is fine, but does not seem to fix the issue straight away. In Konsole profile settings under the advanced tab, change "Line Spacing" to 1. This has fixed the issue with horizontal ...
14
votes
Getting 256 colors to work in tmux
I could not explain why this works but it solved the problem for me.
~/.tmux.conf
set-option -g default-command bash
14
votes
Accepted
KDE Konsole: how to save and restore current session?
Create ~/.konsole/watcher.sh and make it executable (chmod 755 watcher.sh) then add it to the startup applications.
We can start konsole in a restored mode with konsole --tabs-from-file ~/.konsole/...
13
votes
Getting 256 colors to work in tmux
Following lines in ~/.tmux.conf worked for me --
set -g default-terminal "xterm-256color"
set-option -ga terminal-overrides ",xterm-256color:Tc"
Tested on
Tmux 2.7, Ubuntu 16.04,...
10
votes
Accepted
Ugly Horizontal Lines Displayed in Kate and Konsole with Fractional HiDPI Scaling
This is reported to have been resolved in QTBUG-66036 with version 5.12. As of the time I am writing this, QT on Arch Linux is version 5.11.2-1. Other common distros have also not released packages ...
8
votes
Accepted
How to unsplit the screen in konsole?
Most likely you accidentally hit Ctrl+( (split view left/right) or Ctrl+) (split view top/bottom).
To revert that, use Ctrl+Shift+W (default shortcut) to close them one by one.
More information is in ...
8
votes
How to clear the bash history when i close the terminal?
You can use a .bash_logout file to specify commands that should be executed when logging out (see e.g. here for more information).
8
votes
Accepted
How to clear the bash history when i close the terminal?
erase .bash_history
cat /dev/null > .bash_history
or
>.bash_history
add a trap to .bashrc
trap "history -c" EXIT
7
votes
How to clear the bash history when i close the terminal?
The bash documentation (see man bash) includes this about history,
Shell Variables The following variables are set by the shell:
[...]
HISTFILE The name of the file in which command history is saved ...
6
votes
Accepted
img2pdf: get pages in good order
Your best option is to rename the files so that they all have the same number of zero-padded digits, using the perl rename utility (this has different names on different distros, including perl-rename,...
6
votes
Accepted
Why do I see a black-and-white emoji in console with Noto Color Emoji font installed?
The emojis are shown by the font selected in the terminal/console and the ones from the emoji fonts in color are not taking precedence over them. So it's basically the (limited) emoji support of your ...
5
votes
Ugly Horizontal Lines Displayed in Kate and Konsole with Fractional HiDPI Scaling
Another workaround is setting Line Spacing to 1 under Settings -> Edit Current Profile ... -> Advanced -> Terminal Features. It's almost unnoticeable (one extra pixel between lines), but fixes the ...
5
votes
Ugly Horizontal Lines Displayed in Kate and Konsole with Fractional HiDPI Scaling
As a workaround, you could change the Fonts DPI:
go to Fonts, check the box Force Fonts DPI
set to an appropriate value (I use 144 on a 2560x1440 screen, you may want to try 192 in 4K)
Higher DPI ...
5
votes
Accepted
Ctrl-Enter for Midnight Commander not working in X terminals in Fedora, working in OpenSuse
tl;dr: Get used to Alt+Enter (a.k.a. ESC followed by Enter) instead.
Ctrl+Enter generates the exact same sequence in terminal emulators as Enter, so there's no way for an app to distinguish these two....
5
votes
5
votes
KDE Konsole: how to save and restore current session?
Inspired by the other answer, I've created my own script to save and load Konsole snapshots:
https://github.com/denilsonsa/small_scripts/blob/master/konsole_snapshot.py
The usage is pretty simple:
./...
5
votes
Accepted
Is there a way to turn off highlighting of pasted text in Konsole on Plasma 5.21?
It is a bash feature, not Konsole.
Use this command to turn it off:
bind 'set enable-bracketed-paste off'
5
votes
img2pdf: get pages in good order
You can use the shell to expand the filenames in the correct order.
In bash, you can use brace expansion if you know the number range:
img2pdf Vol_{1..430}.tif -o out.pdf
Or using regular wildcards, ...
5
votes
Accepted
Open Konsole terminal always in split view
The following should work.
Create a json file (filename layout.json or any filename you want) with this content:
{
"Orientation": "Vertical",
"Widgets": [
{
...
5
votes
Accepted
How to configure ZSH to behave more like BASH
Emacs vs vi bindings
Both bash and zsh give you a choice of vi-like or emacs-like bindings, with emacs being the default. In zsh, unlike bash, if the VISUAL or EDITOR environment variables are set to ...
4
votes
Getting 256 colors to work in tmux
Really important note here if you're running an Ubuntu older than Bionic (18.04). If you're running tmux 2.1 or older, and you probably are, basically no advice you read online about tmux will work.....
4
votes
Accepted
colorize hostname in command line prompt
Background
After the expansion is done for special prompt sequences, every character remaining in the prompt is counted in order to calculate the length of the prompt.
Problem
Since you've added ...
4
votes
Accepted
read -s gives error via script
The -s option to the built-in utility read is not a standard option, and is unlikely to be implemented in sh. Likewise, the -p option for giving a custom prompt is unlikely to be implemented by a ...
4
votes
Accepted
"konsole -e" results in read-only terminal
When using -e with a terminal emulator to execute a command, it executes that command instead of the shell that it would have started. This means that it runs your script and then nothing else.
If ...
4
votes
How to get rid of Konsole toolbar
Right click on toolbar
uncheck "lock this toolbar"
click on "toolbar shown"
Uncheck all the options there...
3
votes
How do I tell KDE Konsole to open with a specified geometry and window title?
Unfortunately the konsole command does not recognize the complete -geometry ... specification like xterm, e.g. xterm -geometry 100x44+0-30. You have to specify the window size separately. The ...
3
votes
Accepted
Kde Konsole swallows Shift-Left and Shift-Right
They are also defined as global Konsole shortcuts to switch to the previous/next tab. Go to Konsole's Settings -> Configure Shortcuts and remove them there.
(I performed this first, followed by the ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
konsole × 178terminal × 51
kde × 50
bash × 24
linux × 14
shell × 11
terminal-emulator × 11
keyboard-shortcuts × 9
debian × 8
colors × 8
fonts × 7
console × 7
gnome-terminal × 7
kubuntu × 7
shell-script × 6
arch-linux × 6
zsh × 6
tty × 6
mouse × 6
clipboard × 6
manjaro × 5
plasma × 5
kde5 × 5
dolphin × 5
ssh × 4