Application of the Month: Konsole

As part of the March 2004 issue
of the "Application of the month" series on KDE.de, Andreas C. Diekmann
has interviewed Lars Doelle, author of
Konsole. Konsole is what is known as an X terminal emulator and gives you the equivalent of an old-fashioned text screen on your desktop, but one which can
easily share the screen with your graphical applications. The Dutch KDE website is
offering an English translation of the interview
and the overview of this issue. Many thanks to Tom Verbreyt and Wilbert Berendsen for their help in translating this issue.

Dot Categories: 

Comments

by fl (not verified)

Konsole is a great app and by far the best terminal emulator I have ever seen, but I never understood why I can't use the CTRL+T shortcut to open a new tab. I just get a visual bell signal, although I have assigned it in the options.

I thought it might be blocked because ctrl+t would be a bash shortcut (like ctrl+d is for instance), but it works in gnome-terminal

by Will Newton (not verified)

Ctrl+T is the readline (emacs mode) binding for transpose character.

by Jared (not verified)

You can use Ctrl-N or Ctrl-Alt-N to open a new tab. It's one or the other, just can't remember which. This shortcut has been available for quite some time.

As an added bonus, you can hold down the Shift key and press the right and left arrow keys to navigate the tabs, similar to holding Alt and pressing left and right to navigate virtual consoles.

by m. (not verified)

Ctrl-Shift-N or similar. This is why I still prefer multi-gnome-terminal as terminal emulator: key-chains. Press Ctrl+L and any letter to perform action, no chords, no problems.

by Anonymous (not verified)

KDE in general supports key-chains (labelled multi-key mode) too, it's just not working in Konsole with Ctrl (#61667).

by m. (not verified)

Voted.

by cascadefx (not verified)

CTRL+ALT+N

does the trick.

by Mike (not verified)

Hold down CTRL+SHIFT and press the left/right arrow keys to rearrange the order of the tabs.

by Anonymous (not verified)

Or use middle mouse button.

by John Tapsell (not verified)

The cvs digest said this was added this week.

by Leo Savernik (not verified)

To konqueror. Not to konsole.

by j00z (not verified)

I know it's off topic, but I don't know where to look for information. The Spanish KDE website (KDE Hispano, es.kde.org, www.kdehispano.org) is down (ans has been down for about a week now). Does anyone have any news on this?
Thanks!

by Anonymous (not verified)

It's back online now.

by MandrakeUser (not verified)

I can't even imagine my life without using konsole ;-). It brought so much sanity to my everyday work. I always keep several shells open: one for root, two or three in different projects I am working on, one on a remote machine, etc. I switch back and forth, change fonts if needed, etc. Lovely app.

Cheers !

by Pedro (not verified)

I you like Konsole, you should give "screen" a try someday... it has too many features to list here, but it's enough to say that it is the most underrated unix utility there ever was.

by Dominic (not verified)

imo screen lacks a feature for easy scrolling. Shift+PgUp/PgDn is much more convenient.

by Chris Goldman (not verified)

screen keeps a configurable number of lines in each virtual terminal buffer. You can see previous screensful by typing "^Z[esc]" (thus entering copy-mode), and using your page-up, page-down, up ,and down keys. Press any non-copy-mode key ("Z" works) to go back to normal mode.

I'll note that I use screen *with* konsole. One ssh session in konsole per host, each with its own screen session.

Chris

by Pedro (not verified)

Same here ... recursive screen's gets a little hard to use ...

by Gaute Hvoslef K... (not verified)

Yes, but Shift + Page Up/Down is much, much easier :) The following line in ~/.screenrc does the trick for me:

termcapinfo xterm ti@:te@

by Dominic (not verified)

Very nice, thank you.

by Bruce Edge (not verified)

Super cool.
That even makes the mouse scroll work in screen.

-Bruce

by Anonymous (not verified)

Is it possible that Lars contributed to Konsole last time in 9/2000 (http://tinyurl.com/2czwu)?

by xs (not verified)

I use Konsole most of time. It is great! But I found that I don't see many features in my computer:

I don't have Bookmarks Menu in my Konsole. I don't have Settings->Save Sessions Profile...

I use RedHat 7.3. KDE 3.?

Thank you very much for your help

by Anonymous (not verified)

RedHat 7.3 shipped with KDE 3.0.0 which has its second anniversary next week.
Use a current KDE version and you will have the current feature set.

by MandrakeUser (not verified)

you may type the following in a konsole to see what version you are running:

rpm -qa |grep kde

Or even simpler, go to " Help -> about " in any kde app (assuming RedHat didn't modified these help entries)

In the end, yes, you'll need to update both your OS and KDE version to have the latest features ...

by Hans (not verified)

> In the end, yes, you'll need to update both your OS and KDE version to have the latest features ...

Why should he update his whole desktop environmen? He just needs one app updated.

-> Just download konsole and do "./configure; make; checkinstall"

Oh, wait, it's KDE! MandrakeUser is right, you have to update your whole desktop environment. That's one of the reasons, KDE has not jet reached 50% (unix) market share.

by MandrakeUser (not verified)

> Oh, wait, it's KDE! MandrakeUser is right, you have to update your whole
> desktop environment. That's one of the reasons, KDE has not jet reached 50%
> (unix) market share.

Uh Uh, I didn't mean any of these assertions. KDE is one of the two big Linux desktops, I understand it is the most popular but I couldn't care less. It just works great for me.

Now, you might be able to compile konsole by itself if your kdelibs' version is greater than 3. I am not sure though. However, I recommended upgrading the whole desktop environment simply because the original poster is certainly several features everywhere. And it is much faster and safer, at least in mandrake, to upgrade the whole kde than compiling stuff by yourself.

by Anonymous (not verified)

This is not about KDE. It's a general fact that programs require the minimum version of libraries which offer the functionality they depend on. Troll elsewhere.

by Jared (not verified)

Konsole is a great application, and I use it quite extensively every day. However, one thing bugs me about it that I cannot seem to resolve. Prior to KDE 3.1, selecting (highlighting) text in Konsole would automatically copy it to the clipboard. From there, I could go to any other application, and use the Paste function to paste it (in addition to the standard X11 method of middle-clicking).

As of 3.1, however, this functionality was changed so that text is not automatically copied to the clipboard; you have to manually click Edit, Copy to be able to then use the Paste function in another application to copy/paste text. Yes, you can still middle-click, but this is often limiting (middle-clicking to paste text in a browser's URL bar, for example, is an awful experience - you highlight the text you want to copy/paste, click on the URL bar (which automatically highlights the current URL to delete it) and then you paste... the same URL that you already had loaded.)

I presume this change was made as a convenience, which I can understand, but I can't figure out any way to change it back. Basically, I'd like to do one of two things - either revert the behavior back to it's pre-3.1 style, or just be able to manually copy the text I have highlighted (eg., a hotkey sequence like Ctrl-C). I've tried the hotkey method before, but that didn't want to work for me either.

Any suggestions on this? Thanks.

by Jan Felix Reuter (not verified)

You can configure your very own shortcuts via the settings menu. Just don't use Ctrl-C, that's pretty much reserved in a console.

Also, you don't have to paste an URL in the address bar, just middle click somewhere in the browser window. Konqueror will then open the URL. Beats Ctrl-V hands down, in my opinion.

Cheers, Fogger

by Steve Wray (not verified)

I found this link while trying to figure out why pasting something like this;

foo:bar

into konsole results in only

bar

being pasted in.

This behavior sucks and I am at a loss to configure it away or even explain it.

Offers?

Thanks!

by Jonathan Su (not verified)

I like Konsole too. But I still do not know how to config the setting to make the copy/paste working.

I use WindowsXP, VNC, and Linux (VNC). I would like be able to copy/paste text between windows and Linux Konsole, also between Konsole in one VNC to another Konsole in another VNC.

My environment could copy/paste texts between windows and xterms. The text could also be copy/paste between xterm and Konsole in one VNC.

I would be appreciate that someone could give me a solution.

Best regards

Jonathan

by Jonathan Su (not verified)

The copy / paste works by adding two lines to xstartup:

/home/gnu/vnc-4.0/bin/vncconfig -nowin &
/home/utils/autocutsel-0.8.0/bin/autocutsel -selection PRIORITY &

Jonathan

by Ricardo Cruz (not verified)

Just to point out that you can select an URL and then middle-click it anywhere into a Konqueror window and it will load that page.
The same is truth to Mozilla.

by martinc (not verified)

I think this is a setting in Klipper (assuming you're running it). Look in "configure Klipper...", and choose "Synchronise contents of the clipboard and the selection". This reverts to pre-3.1 behaviour (for me).

--MC

by Jon Gabrielson (not verified)

"Synchronise contents of the clipboard and the selection" is an
additional feature that some people might want, but is not the
same as the pre-3.1 behavior. The klipper documentation explains
that X keeps it's own clipboard which is separate from klipper's
clipboard. The problem is that the new version of kde seems to
have disabled X's clipboard. I also am having this problem and
selecting "Synchronise contents of the clipboard and the selection"
doesn't fix the problem (even if it did, I still would prefer the
old behavior of having independent clipboards). Any help would
be greatly appreciated.

by Jon Gabrielson (not verified)

Ok, I figured it out. I disabled klipper and then restarted X
and now it works like pre-3.1

by Archon810 (not verified)

There's now an option in Klipper to synchronize copy and select. I was having the same problem, so I found this thread and just enabled it instead of quitting Klipper altogether.

by OI (not verified)

Wow, great app, a black screen with text. Really cool guys.

I wonder why Konsole shows up as app of the month all the time,
are there only hackers voting?

by Jeremy (not verified)

I haven't noticed it being app of the month before.

I think you're ranting :-)

by David Johnson (not verified)

If you don't like white text on black background, change it! There are several predefined color schemes, including several transparent themes.

by Chibix (not verified)

How Proprietary! Predefined Schemes!
In the font menu, we can choose 'custom', but I'm sure glad we don't get the option in the Schema menu! Yup, I just love it when some programmer decides what we're allowed to customize and what we're not. We should all switch to Microsoft and vote CMD as the "Cool new application of the month"!

What if we don't like the four preconfigured transparent schemes we get? What if we want to make it fit in with our desktop? I guess we have to suffer, eh? Or vote for some OTHER console! Anybody ever tried ATerm?

by Anonymous (not verified)

> What if we don't like the four preconfigured transparent schemes we get?

Create new ones with the scheme editor.

by Derek Kite (not verified)

There are a huge number of indispensable utilities available in the command line. Nothing beats a shell for admin work, programming, etc. Nothing. Even Microsoft is enhancing their command line stuff. These users may be over represented right now among linux users. I don't hear them denigrating people for using and prefering graphical tools to draw pictures. Why have a heavy weight application when a simple lightweight shell utility works best?

For those who need it, Konsole is very nice.

Derek

by Derek Kite (not verified)

A little further and maybe a rant.

In my work, among other things I maintain digital control systems for buildings and refrigeration plants. Invariably they come with some pretty graphical displays. Note I said maintain, not install. There is a reason for that. They are sold on the premise that pretty pictures will help the unskilled maintain their systems. I can't lie very well, so I can't sell them. But I digress. The graphical screens are inevitably useless for the technicians that maintain the systems. They only show things, maybe accurately, maybe not. To fix problems require white text on black, or the inverse. Changing configuration, reprogramming, etc. And what happens is the graphical screens, which are an expensive useless addon, get out of sync with what is happening in the system. We don't maintain them since the software to do so is hugely expensive and proprietary, and the customers can't see any payback anyways. So they end up being an expensive boat anchor.

Graphical programming is very expensive in resources, manpower and engineering. In some situations the costs are worth it. Most times they are not, especially with embedded controls with limited hardware. What that means is the graphical effort takes resources away from the basic and necessary stuff, like control algorithms, hardware design, etc. What we end up with is a pretty useless piece of junk.

So don't go ragging on command line tools. They work. That alone puts them above 95% of everything else. And when money is on the line, I'll go for what works. That way I may get paid for my effort.

Derek

by anon (not verified)

I certainly don't think anyone was ragging on console-based tools, Derek. It is no doubt a valuable tool for many people.

by Chibix (not verified)

Expensive and proprietary to keep the graphical environment up to date? Jesus, sounds like Linux needs a lot of work. If they're such boat-anchors, maybe it's time to change the operating systems. You could go with a version that comes without X11, maybe? Maybe if all you GOT was white text on a black screen, They'd be less boat-anchory?

Then again, You never have problems with Microsoft Operating Systems getting "Out of Sync" with themselves, since the graphical environment Only Reflects what is true in the command-line.

Hey, Go with BeOS if you want something impressive, though. Then you don't have to worry about tools for graphical maintenance because the company's dead! They won't be MAKING any more tools! =D FUN!

by Tom (not verified)

Heh, I love it, anybody who uses a command line is a 'hacker'. Perhaps you'd be more comfortable using Microsoft Bob.

Or Just wait until they come out with computers with only one button, that comes pre-pressed at the factory?

Or mabye you'd like to scrap the written word altogether and go back to crude cave paintings?

by larry (not verified)

Does anyone know how to get konsole to set the last executed command to konsole's window title. For example issuing the command 'find /' would set the title as "larry@localhost: find /" or for telnet sessions to other hosts like "larry@otherhost".

by Grant McDorman (not verified)

It appears this can't be done (from bash, at least). The shell command that can be used to get the last command - fc -l - could potentially work, *except* that it appears the last command isn't entered into the history at the time the prompt is prepared. (Try setting PROMPT_COMMAND to "fc -ln|tail -1" - you'll see not the last command, but the one before that.)

The closest one can get is to put $_ in PS1; unfortunately this is only the last argument to the last command, so it only works if the command had no arguments. (i.e. for 'find / -name foo', you'd get just 'foo').

Pity.