|
|
|
|
@ -71,16 +71,13 @@ void on_pacman_db_unlock(void){
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void on_terminal_done(GtkWidget *, int , main_window *widgets){
|
|
|
|
|
// GPid pid = (GPid)g_object_get_data(G_OBJECT(widgets->InstallTerminal),"pid");
|
|
|
|
|
// if (!pid) return;
|
|
|
|
|
const char cancel_signal = 3;
|
|
|
|
|
char *command = yon_char_new(" ");
|
|
|
|
|
command[0]=cancel_signal;
|
|
|
|
|
char *tmp = yon_char_unite(command,"exit 0\n",NULL);
|
|
|
|
|
char *tmp = yon_char_unite(command,"\n",NULL);
|
|
|
|
|
free(command);
|
|
|
|
|
vte_terminal_feed_child(VTE_TERMINAL(widgets->InstallTerminal),tmp,strlen(tmp));
|
|
|
|
|
free(tmp);
|
|
|
|
|
// vte_terminal_feed(VTE_TERMINAL(widgets->InstallTerminal),"tput reset; tput cup 0 0; tput ed; exit 0",1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void on_terminal_more(GtkWidget *, main_window *widgets){
|
|
|
|
|
|