aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fbcon.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fbcon.c b/fbcon.c
index ad586be..c5117e5 100644
--- a/fbcon.c
+++ b/fbcon.c
@@ -45,7 +45,7 @@ static cairo_t *context2;
cairo_font_extents_t extents;
static TMT *vt;
-static int dirty;
+static int dirty, pty;
static struct udev *udev;
static struct libinput *kbd;
@@ -277,6 +277,8 @@ static void tmt_callback(tmt_msg_t m, TMT *vt, const void *a, void *p)
case TMT_MSG_UPDATE:
dirty++;
break;
+ case TMT_MSG_ANSWER:
+ write(pty, a, strlen(a));
default:
break;
}
@@ -289,7 +291,7 @@ int main(int argc, char *argv[])
struct winsize win;
const char *drm_node = NULL;
const char *fb_node = NULL;
- int pty, input;
+ int input;
pid_t child;
setlocale(LC_ALL,"");