aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/termcmd.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-08-22 10:34:28 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-08-22 10:34:28 +0000
commit141119f0d2a162f8d6747ed4e1d23e94515a0035 (patch)
tree772ccdeca0927fbde877fe6cdd11db954eec437b /src/bin/termcmd.c
parenthide popmedia on video stop. (diff)
downloadterminology-141119f0d2a162f8d6747ed4e1d23e94515a0035.tar.gz
good idea from gustavo - a g command for terminology's cmdbox.
g20x20 = make term 20x20 chars. SVN revision: 75537
Diffstat (limited to 'src/bin/termcmd.c')
-rw-r--r--src/bin/termcmd.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/bin/termcmd.c b/src/bin/termcmd.c
index ab538c5..4489a5b 100644
--- a/src/bin/termcmd.c
+++ b/src/bin/termcmd.c
@@ -86,6 +86,19 @@ termcmd_do(Evas_Object *obj, Evas_Object *win, Evas_Object *bg, const char *cmd)
}
return EINA_TRUE;
}
+ if ((cmd[0] == 'g') || (cmd[0] == 'G')) // font size
+ {
+ int w = -1, h = -1;
+
+ if (sscanf(cmd, "g%ix%i", &w, &h) == 2)
+ {
+ if ((w > 0) && (h > 0))
+ {
+ termio_grid_size_set(obj, w, h);
+ }
+ }
+ return EINA_TRUE;
+ }
return EINA_FALSE;
obj = win = bg = NULL;
}