Through the clever use of some escape characters, I used to put the output of arbitrary commands (e.g. "dirs") into my xterm title bar. Can I do the same thing in konsole? If so, how?
To run a command, just type it in and press <Enter>. The command should run and print the output in the Konsole display. To create a new tab, click on File > New Tab. To create a new window, click on File > New Window. Once a new tab is created, it will show up in the tab bar.
The directory should be opened in Dolphin. To save the output of Konsole terminal to a file, click on File > Save Output As… Now, select a location and a filename and click on Save. You can click on the Filter dropdown menu and select between plain text document format (default) and HTML format.
This is how Konsole terminal app looks like. To run a command, just type it in and press <Enter>. The command should run and print the output in the Konsole display. To create a new tab, click on File > New Tab.
The command should run and print the output in the Konsole display. To create a new tab, click on File > New Tab. To create a new window, click on File > New Window. Once a new tab is created, it will show up in the tab bar. You can switch between them very easily.
It's a little tricky to do what you want, but you can change Konsole's title bar. Go to:
Settings > Edit current profile > Tabs > Tab title format
and change it to %w
which means Window Title Set by Shell. I think you need to close Konsole and reopen it for the changes to take effect.
Anyway, go to the prompt and exec:
OUTPUT=`whoami`; echo -ne "\033]2;$OUTPUT\007"
and behold!
This example sets the title of the window temporarily to whatever is outputted by whoami.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With