Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
47089bb9
Commit
47089bb9
authored
7 years ago
by
Hisham Muhammad
Browse files
Options
Download
Email Patches
Plain Diff
htoprc: store screen 0's setup for improved compatibility
parent
9791901b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Settings.c
+7
-0
Settings.c
with
7 additions
and
0 deletions
+7
-0
Settings.c
View file @
47089bb9
...
...
@@ -455,6 +455,13 @@ bool Settings_write(Settings* this) {
fprintf
(
fd
,
"left_meter_modes="
);
writeMeterModes
(
this
,
fd
,
0
);
fprintf
(
fd
,
"right_meters="
);
writeMeters
(
this
,
fd
,
1
);
fprintf
(
fd
,
"right_meter_modes="
);
writeMeterModes
(
this
,
fd
,
1
);
// Legacy compatibility with older versions of htop
fprintf
(
fd
,
"tree_view=%d
\n
"
,
(
int
)
this
->
screens
[
0
]
->
treeView
);
// This "-1" is for compatibility with the older enum format.
fprintf
(
fd
,
"sort_key=%d
\n
"
,
(
int
)
this
->
screens
[
0
]
->
sortKey
-
1
);
fprintf
(
fd
,
"sort_direction=%d
\n
"
,
(
int
)
this
->
screens
[
0
]
->
direction
);
if
(
this
->
nPlugins
>
0
)
{
fprintf
(
fd
,
"plugins="
);
writeList
(
fd
,
this
->
plugins
,
this
->
nPlugins
);
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help