billiob pushed a commit to branch master.
commit 75f40ae3c2fb38032b16277e72e87641c5c964ae
Author: Boris Faure <[email protected]>
Date: Fri May 10 23:02:46 2013 +0200
compat: improve doc/parsing on DCS escape codes
---
src/bin/termptyesc.c | 22 ++++++++++++++++++++--
1 file changed, 20 insertions(+), 2 deletions(-)
diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c
index 6f40bb3..23d4527 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -1142,7 +1142,24 @@ _handle_esc_dcs(Termpty *ty __UNUSED__, const
Eina_Unicode *c, const Eina_Unicod
switch (buf[0])
{
case '+':
- /* TODO: Set request termcap/terminfo */
+ if (len < 4)
+ goto end;
+ switch (buf[1])
+ {
+ case 'q':
+ ERR("unhandled dsc request to get termcap/terminfo");
+ /* TODO */
+ goto end;
+ break;
+ case 'p':
+ ERR("unhandled dsc request to set termcap/terminfo");
+ /* TODO */
+ goto end;
+ break;
+ default:
+ ERR("invalid dsc request about termcap/terminfo");
+ goto end;
+ }
break;
case '$':
/* Request status string */
@@ -1164,7 +1181,8 @@ _handle_esc_dcs(Termpty *ty __UNUSED__, const
Eina_Unicode *c, const Eina_Unicod
}
else if (buf[3] == 'q') /* DECSCA */
{
- /* TODO: */
+ ERR("unhandled DECSCA '$qq'");
+ goto end;
}
else
{
--
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev