Handle simple execution

Tested with ping from biboumi
This commit is contained in:
Paul Fariello
2018-03-22 22:21:15 +02:20
parent c9f6a78f57
commit 925cd488c1
6 changed files with 60 additions and 4 deletions

View File

@@ -379,6 +379,7 @@ char* win_get_tab_identifier(ProfWin *window);
char* win_to_string(ProfWin *window);
void win_command_list_error(ProfWin *window, const char *const error);
void win_handle_command_list(ProfWin *window, GSList *cmds);
void win_handle_command_exec_result_note(ProfWin *window, const char *const type, const char *const value);
// desktop notifications
void notifier_initialise(void);

View File

@@ -1752,3 +1752,10 @@ win_handle_command_list(ProfWin *window, GSList *cmds)
win_println(window, THEME_DEFAULT, '!', "");
}
}
void
win_handle_command_exec_result_note(ProfWin *window, const char *const type, const char *const value)
{
assert(window != NULL);
win_println(window, THEME_DEFAULT, '!', value);
}