mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Merge pull request #1931 from H3rnand3zzz/feature/redraw-command
Introduce `/redraw` command
This commit is contained in:
commit
62e1de0f51
@ -2729,6 +2729,18 @@ static const struct cmd_t command_defs[] = {
|
||||
"/privacy logging off",
|
||||
"/privacy os off")
|
||||
},
|
||||
|
||||
{ CMD_PREAMBLE("/redraw",
|
||||
parse_args, 0, 0, NULL)
|
||||
CMD_MAINFUNC(cmd_redraw)
|
||||
CMD_TAGS(
|
||||
CMD_TAG_UI)
|
||||
CMD_SYN(
|
||||
"/redraw")
|
||||
CMD_DESC(
|
||||
"Redraw user interface. Can be used when some other program interrupted profanity or wrote to the same terminal and the interface looks \"broken\"." )
|
||||
},
|
||||
|
||||
// NEXT-COMMAND (search helper)
|
||||
};
|
||||
|
||||
|
@ -9730,6 +9730,14 @@ cmd_correct_editor(ProfWin* window, const char* const command, gchar** args)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
gboolean
|
||||
cmd_redraw(ProfWin* window, const char* const command, gchar** args)
|
||||
{
|
||||
ui_resize();
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
gboolean
|
||||
cmd_silence(ProfWin* window, const char* const command, gchar** args)
|
||||
{
|
||||
|
@ -255,6 +255,7 @@ gboolean cmd_executable_vcard_photo(ProfWin* window, const char* const command,
|
||||
gboolean cmd_mam(ProfWin* window, const char* const command, gchar** args);
|
||||
gboolean cmd_editor(ProfWin* window, const char* const command, gchar** args);
|
||||
gboolean cmd_correct_editor(ProfWin* window, const char* const command, gchar** args);
|
||||
gboolean cmd_redraw(ProfWin* window, const char* const command, gchar** args);
|
||||
gboolean cmd_silence(ProfWin* window, const char* const command, gchar** args);
|
||||
gboolean cmd_register(ProfWin* window, const char* const command, gchar** args);
|
||||
gboolean cmd_mood(ProfWin* window, const char* const command, gchar** args);
|
||||
|
Loading…
Reference in New Issue
Block a user