-
-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce /redraw
command
#1931
Introduce /redraw
command
#1931
Conversation
b1226c1
to
98475c4
Compare
src/command/cmd_defs.c
Outdated
CMD_SYN( | ||
"/redraw") | ||
CMD_DESC( | ||
"Redraw User Interface. Might be used in case if some other program interrupted and interface is \"broken\"." ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure in case if
is correct. I think the if
can be canceled. Personally I probably would just use the first sentence.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also believe User
and Interface
should be lower case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Redraw User Interface. Might be used in case if some other program interrupted and interface is \"broken\"." ) | |
"Redraw user interface. Can be used when some other program interrupted profanity or wrote to the same terminal and the interface looks \"broken\"." ) |
I also would just use the first sentence, but that's because I'm lazy :)
Here we're writing the help text for our users, which also shows up in the man pages, and I like the idea to include the "why" some command exists.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just description. Rest looks ok.
I think some users use a keybinding for their terminal. But probably a command can be helpful. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be merged after description is updated.
`/redraw` command allows resolve problem for usual users, as well as developers. Incredibly useful when debugging with something that can trash out the output, like GDB. Not to mention many asynchronous commands that can break the UI at any point.
98475c4
to
a1ff88c
Compare
updated |
See commit message.