Bug 126930 - Ability to lock input from a tab
Summary: Ability to lock input from a tab
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 1.6.2
Platform: Gentoo Packages Linux
: NOR wishlist (vote)
Target Milestone: ---
Assignee: Konsole Developer
: 283248 (view as bug list)
Depends on:
Reported: 2006-05-07 23:15 UTC by Craig Bradney
Modified: 2018-04-16 11:22 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Note You need to log in before you can comment on or make changes to this bug.
Description Craig Bradney 2006-05-07 23:15:04 UTC
Version:           1.6.2 (using KDE KDE 3.5.2)
Installed from:    Gentoo Packages
OS:                Linux

If you have multiple tabs open and some are connected to a  live server for example, it would be nice to be able to sometimes ensure the tab for that session cannot receive any input if you create some lock on it.

I often work on multiple web servers and then while they are busy or change the work I am doing for awhile, I leave the tabs open of course in konsole. rm -rf and many other commands useful in local shells in any of those sessions accidentally selected could be disastrous.. touch wood, its never happened. Right click on tab, lock input or similar would be great.
Comment 1 Thiago Macieira 2006-05-14 18:52:46 UTC
Use screen.
Comment 2 Craig Bradney 2006-05-14 22:44:20 UTC
Screen is useful, yes, but I still think this would be a nice addition.
Comment 3 Robert Knight 2006-08-08 06:22:18 UTC
Requested in several reports and should be easy to add.  Confirmed.
Comment 4 Jekyll Wu 2011-07-20 15:27:01 UTC
FYI, yakuake supports this nice feature.
Comment 5 Jekyll Wu 2011-10-04 03:24:28 UTC
*** Bug 283248 has been marked as a duplicate of this bug. ***
Comment 6 Matteo Croce 2017-11-28 09:06:53 UTC
I found it very useful in older Konsole versions
Comment 7 Kurt Hindenburg 2018-03-06 15:28:43 UTC
Git commit 4f55526575eef4dba71d6e1650370fac48abd2a3 by Kurt Hindenburg.
Committed on 06/03/2018 at 15:28.
Pushed by hindenburg into branch 'master'.

Konsole: Add read-only mode

This patch adds a read-only option for TerminalDisplays. When active,
all keyboard events are eaten. Mouse input is not affected and works like before.
The setting is not persisted and only lasts for the duration of the session.


VDG input is highly appreciated. Also, I'm not sure if I can just change the rc-files without bumping the version?

Test Plan:
- Shortcuts still work
- Paste and drop actions are disabled when readonly
- Switching between read-only and normal tabs works as expected
- Mouse input works like before

Reviewers: #konsole, hindenburg

Reviewed By: #konsole, hindenburg

Subscribers: hindenburg, ngraham, #konsole

Tags: #konsole

Differential Revision: https://phabricator.kde.org/D10862

M  +2    -1    desktop/partui.rc
M  +4    -1    desktop/sessionui.rc
M  +18   -1    src/Session.cpp
M  +4    -0    src/Session.h
M  +33   -0    src/SessionController.cpp
M  +3    -0    src/SessionController.h
M  +25   -4    src/TerminalDisplay.cpp
M  +21   -0    src/ViewContainer.cpp