summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2019-09-14 14:34:07 +0200
committerBoris Faure <billiob@gmail.com>2019-09-14 14:34:07 +0200
commit7bfef215b0305d04579d98ba14c59f953163512c (patch)
tree6fab8bec59f684f5f134bc76f108ea7d88ff9dd7 /src
parent77ed56bf001b06d3d3665daf18dccc11a28b437d (diff)
termptyext: remove 'a' example
Because we have plenty of other examples in the file
Diffstat (limited to 'src')
-rw-r--r--src/bin/termptyext.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/bin/termptyext.c b/src/bin/termptyext.c
index 96b3f5e..a0ca1b3 100644
--- a/src/bin/termptyext.c
+++ b/src/bin/termptyext.c
@@ -28,28 +28,6 @@
28// EINA_TRUE), handled here first, then in termio (EINA_FALSE return) or not 28// EINA_TRUE), handled here first, then in termio (EINA_FALSE return) or not
29// handled here at all and just passed to termio to figure it out (return 29// handled here at all and just passed to termio to figure it out (return
30// EINA_FALSE). 30// EINA_FALSE).
31//
32// command strings like like this:
33// axBLAHBLAH
34// where 'a' is the major opcode char.
35// and 'x' is the minor opcode char.
36// and 'BLAHBLAH' is an optional data payload string
37
38static Eina_Bool
39_handle_op_a(Termpty *_ty EINA_UNUSED,
40 const Eina_Unicode *buf EINA_UNUSED,
41 size_t blen EINA_UNUSED)
42{
43 switch (buf[0])
44 {
45 case 'x': // command ax*
46 break;
47 // room here for more minor opcode chars like 'b', 'c' etc.
48 default:
49 break;
50 }
51 return EINA_FALSE;
52}
53 31
54#if defined(ENABLE_TESTS) || defined(ENABLE_TEST_UI) 32#if defined(ENABLE_TESTS) || defined(ENABLE_TEST_UI)
55 33
@@ -365,10 +343,6 @@ termpty_ext_handle(Termpty *ty,
365{ 343{
366 switch (buf[0]) // major opcode 344 switch (buf[0]) // major opcode
367 { 345 {
368 case 'a': // command a*
369 return _handle_op_a(ty, buf + 1, blen - 1);
370 break;
371 // room here for more major opcode chars like 'b', 'c' etc.
372#if defined(ENABLE_TESTS) || defined(ENABLE_TEST_UI) 346#if defined(ENABLE_TESTS) || defined(ENABLE_TEST_UI)
373 case 't': 347 case 't':
374 tytest_handle_escape_codes(ty, buf + 1); 348 tytest_handle_escape_codes(ty, buf + 1);