summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2012-08-23 02:46:37 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2012-08-23 02:46:37 +0000
commita6ed899bd62e3734c5117a2bdf8c68dcb18df30d (patch)
treef2348db793bf51cdc359f2db6d1d600dd1c1739b /src
parent8524aae983c76c84b4b33ae6c8af6a2d3351517a (diff)
termcmd: show error messages to ease debug.
SVN revision: 75585
Diffstat (limited to 'src')
-rw-r--r--src/bin/termcmd.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/bin/termcmd.c b/src/bin/termcmd.c
index 05acbb7..45850d2 100644
--- a/src/bin/termcmd.c
+++ b/src/bin/termcmd.c
@@ -62,6 +62,8 @@ _termcmd_font_size(Evas_Object *obj, Evas_Object *win __UNUSED__, Evas_Object *b
62 { 62 {
63 termio_font_size_set(obj, config->font.size - 1); 63 termio_font_size_set(obj, config->font.size - 1);
64 } 64 }
65 else
66 ERR("Unknown font command: %s", cmd);
65 } 67 }
66 return EINA_TRUE; 68 return EINA_TRUE;
67} 69}
@@ -116,6 +118,9 @@ _termcmd_grid_size(Evas_Object *obj, Evas_Object *win __UNUSED__, Evas_Object *b
116 } 118 }
117 if ((w > 0) && (h > 0)) 119 if ((w > 0) && (h > 0))
118 termio_grid_size_set(obj, w, h); 120 termio_grid_size_set(obj, w, h);
121 else
122 ERR("Unknown grid size command: %s", cmd);
123
119 return EINA_TRUE; 124 return EINA_TRUE;
120} 125}
121 126
@@ -152,7 +157,6 @@ termcmd_watch(Evas_Object *obj, Evas_Object *win, Evas_Object *bg, const char *c
152 if ((cmd[0] == '/') || (cmd[0] == 's')) 157 if ((cmd[0] == '/') || (cmd[0] == 's'))
153 return _termcmd_search(obj, win, bg, cmd + 1); 158 return _termcmd_search(obj, win, bg, cmd + 1);
154 return EINA_FALSE; 159 return EINA_FALSE;
155 obj = win = bg = NULL;
156} 160}
157 161
158// called when you hit enter 162// called when you hit enter
@@ -169,6 +173,6 @@ termcmd_do(Evas_Object *obj, Evas_Object *win, Evas_Object *bg, const char *cmd)
169 if ((cmd[0] == 'b') || (cmd[0] == 'B')) 173 if ((cmd[0] == 'b') || (cmd[0] == 'B'))
170 return _termcmd_background(obj, win, bg, cmd + 1); 174 return _termcmd_background(obj, win, bg, cmd + 1);
171 175
176 ERR("Unknown command: %s", cmd);
172 return EINA_FALSE; 177 return EINA_FALSE;
173 obj = win = bg = NULL;
174} 178}