Browse Source

Debuging code

Héctor García 10 years ago
parent
commit
bae8df5245
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/mssh-window.c

+ 2 - 0
src/mssh-window.c

@@ -82,6 +82,7 @@ static void mssh_window_insert(GtkWidget *widget, gchar *new_text,
 
     for(i = 0; i < window->terminals->len; i++)
     {
+        fprintf(stderr, "Sending text '%s' to terminal %d\n", new_text, i);
         mssh_terminal_send_string(g_array_index(window->terminals,
             MSSHTerminal*, i), new_text);
     }
@@ -98,6 +99,7 @@ static gboolean mssh_window_key_press(GtkWidget *widget,
 
     for(i = 0; i < window->terminals->len; i++)
     {
+        fprintf(stderr, "Sending keyval %d to terminal %d\n", event->keyval, i);
         mssh_terminal_send_data(g_array_index(window->terminals,
             MSSHTerminal*, i), event);
     }