mate-desktop / mate-terminal

The MATE Terminal Emulator
http://www.mate-desktop.org
GNU General Public License v3.0
135 stars 73 forks source link

Feature Request - Read Only Mode #379

Open enly1 opened 3 years ago

enly1 commented 3 years ago

Feature Request - Read Only mode for mate-terminal

Background to Request

Konsole has a read only mode which is very useful when launching command line vpn clients and other tools which you don't want to accidentally close.

I have implemented anti-close capabilities using a combination of profile settings and compiz window manager rules to remove window close decorations based on window titles. Bit nasty, but workable for now. But a proper read only mode protecting the windows contents from keyboard input would really help.

Expected behaviour

Select read only menu option, activate read only via hotkey or launch from command line with read only flag.

Actual behaviour

Terminal switches to read only mode where keyboard input is blocked (except read only hotkey toggle) and message is displayed on terminal indicating its in read only mode. Window close events should also be ignored (beyond menu Close Window).

Mouse selection and copy/paste ( and any other read only activities ) should remain unchanged.

Konsole Implementation

What appears to be discussion on implementation of readonly mode in Konsole for additional context and background can be found here -> https://phabricator.kde.org/D10862