mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-13 04:34:35 +03:00
Add read-only option
Add command line option to disable all system and process changing features.
This commit is contained in:

committed by
cgzones

parent
812cfcb94d
commit
36880cd61c
10
Settings.c
10
Settings.c
@ -472,3 +472,13 @@ void Settings_setSortKey(Settings* this, ProcessField sortKey) {
|
||||
this->treeDirection = (Process_fields[sortKey].defaultSortDesc) ? -1 : 1;
|
||||
}
|
||||
}
|
||||
|
||||
static bool readonly = false;
|
||||
|
||||
void Settings_enableReadonly(void) {
|
||||
readonly = true;
|
||||
}
|
||||
|
||||
bool Settings_isReadonly(void) {
|
||||
return readonly;
|
||||
}
|
||||
|
Reference in New Issue
Block a user