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

Add per-terminal read only mode (#379) #387

Open huntertur opened 3 years ago

huntertur commented 3 years ago

This adds the feature requested in issue #379 except for the "ignore window close events" part due to the awkward situation it presents where if there are multiple terminal tabs open, and only some of those tabs are read-only terminals, it would seem odd for the window close behavior to depend on which tab happens to be in focus.

When a terminal is marked read-only, " (Read Only)" is appended to its title. The read-only status can be toggled using either the Terminal menu or the Shift-Ctrl-R keyboard shortcut.

This is my first time contributing to MATE. If there are any processes or guidelines that I'm disregarding, please let me know.

raveit65 commented 3 years ago

Can you please rebase against master ? This will fix Travis-CI builds. A read-only terminal tab means that terminal commands can't write to system directories? So only commands which only read like cat will work?