Bug 313862 - CTRL+C is ignored by konsole
Summary: CTRL+C is ignored by konsole
Status: RESOLVED NOT A BUG
Alias: None
Product: konsole
Classification: Applications
Component: keyboard (show other bugs)
Version: 2.10
Platform: Ubuntu Linux
: NOR minor
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-25 01:02 UTC by Horacio Sanson
Modified: 2014-02-15 17:06 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Horacio Sanson 2013-01-25 01:02:37 UTC
Run any command that requires CTRL+C to terminate from within konsole (e.g. tail -f ) and then try to stop it using CTRL+C. It won't stop.

The CTRL+C seems to be eaten by konsole for some reason. Everything works ok on other terminals like sakura or xterm.

Reproducible: Always

Steps to Reproduce:
1. Open konsole and run tail -f <some log file>
2. Try to stop tail with CTRL+C

Actual Results:  
The tail process never receives the CTRL+C signal and never terminates., I have to kill it from within another konsole.

Expected Results:  
The tail -f process should be terminated.

Using latest KDE Plasma, Applications 4.10 RC 3 packages from Kubuntu.
Comment 1 Jekyll Wu 2013-01-25 02:21:08 UTC
Can't reproduce. Please check whether you have set "Ctrl+C" as some shortcut  within konsole or globally.

There is no big change in how konsole deal with keyboard input between 4.9 and 4.10, so It is unlikely that it suddenly stops working for no reason in newer versions. ( Or, if it is really broken, we should have received tons of bug reports right after Beta1 is released)
Comment 2 Francesco Cecconi 2013-01-25 11:26:36 UTC
Can't reproduce with KDE 4.10 (4.9.98).
Comment 3 Horacio Sanson 2013-01-28 00:43:31 UTC
I removed all konsole related files (.kde/share/apps/konsole and .kde/share/config/konsolerc) and now ctrl-c works correctly.

Some additional notes:

  - There was no shortcut set on global or on konsole mapping Ctrl-C to anything.
  - Pressing Ctrl-C and then <Enter> three times opened a new tab.
  - Indeed Ctrl-C was being mapped to something else but there was no place to see
    to what it was mapped.
Comment 4 Tester 2014-02-15 17:06:45 UTC
I had the same issue since upgrading to SC 4.10. As suggested I have removed the related konsole files. It solved the problem. Thanks ! 

After comparing the old files with the new ones, I have identified following lines that cause the issue :

".kde4/share/config/konsolerc" :

"[$Version]
update_info=konsole.upd:2.9.0-global-options"

If you keep these lines in the config and use the "Run command interface" (Alt+F2) and select "Run konsole" (the item without an icon), this issue doesn't exist. The issue seems to exist only if you run "Konsole / Terminal" (item with the konsole icon).

(In reply to comment #3)
> I removed all konsole related files (.kde/share/apps/konsole and
> .kde/share/config/konsolerc) and now ctrl-c works correctly.
> 
> Some additional notes:
> 
>   - There was no shortcut set on global or on konsole mapping Ctrl-C to
> anything.
>   - Pressing Ctrl-C and then <Enter> three times opened a new tab.
>   - Indeed Ctrl-C was being mapped to something else but there was no place
> to see
>     to what it was mapped.