vte: answer with ACK to an ENQ enquiry
authorDavid Herrmann <dh.herrmann@googlemail.com>
Mon, 28 May 2012 14:48:08 +0000 (16:48 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Mon, 28 May 2012 14:48:08 +0000 (16:48 +0200)
Other emulators might ignore this. However, the easiest way to answer to
an enquiry is probably ACK.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/vte.c

index dd357dd..1bddc39 100644 (file)
--- a/src/vte.c
+++ b/src/vte.c
@@ -205,7 +205,8 @@ static void do_execute(struct kmscon_vte *vte, uint32_t ctrl)
                        break;
                case 0x05: /* ENQ */
                        /* Transmit answerback message */
-                       /* TODO */
+                       /* TODO: is there a better answer than ACK?  */
+                       vte_write(vte, "\x06", 1);
                        break;
                case 0x07: /* BEL */
                        /* Sound bell tone */