Skip to content

Conversation

@runlevel5
Copy link

@runlevel5 runlevel5 commented Jan 28, 2026

When entering rename mode in the Screens setup (F2 Setup > Screens), the function bar now displays appropriate labels:

  • F1: Cancel (cancels rename, restores original name)
  • F2: Done (confirms rename)
  • F3-F10: blank

Previously, the function bar showed stale labels from normal mode (New, MoveUp, MoveDn, Remove, Done) which were non-functional and confusing during rename.

Visual summary

Normal mode:
F1       F2       F3       F4       F5       F6       F7       F8      F9       F10
          Rename	           New               MvUp  MvDn  Rm     Done
Rename mode:
F1       F2       F3       F4       F5       F6       F7       F8       F9       F10
Cancel   Done

Fixes #1882

When entering rename mode in the Screens setup (F2 Setup > Screens),
the function bar now displays appropriate labels:
- F1: Cancel (cancels rename, restores original name)
- F2: Done (confirms rename)
- F3-F10: blank

Previously, the function bar showed stale labels from normal mode
(New, MoveUp, MoveDn, Remove, Done) which were non-functional and
confusing during rename.

Fixes htop-dev#1882
Comment on lines +455 to +456
ScreensPanel_cleanup();
ScreenTabsPanel_cleanup();
Copy link
Author

@runlevel5 runlevel5 Jan 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I follow the same pattern to free them up

@runlevel5 runlevel5 marked this pull request as ready for review January 28, 2026 22:57
Copy link
Member

@natoscott natoscott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM and works nicely, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug?] Screen Renaming mode's Function Bar are not working at all

2 participants