aboutsummaryrefslogtreecommitdiffstats
path: root/fbcon.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-01-31 07:20:30 +0100
committerGerd Hoffmann <kraxel@redhat.com>2019-01-31 07:20:30 +0100
commitaa62b1bc4317cce27b9c83610b8c558dab07e1dd (patch)
tree258db42268d0ce055ecf2f3574d8865c1615ca06 /fbcon.c
parent6c289d544115c7b5c8ca5ca2e4101d0543dc1564 (diff)
downloadfbida-aa62b1bc4317cce27b9c83610b8c558dab07e1dd.tar.gz
terminal reply
Diffstat (limited to 'fbcon.c')
-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,"");