diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-01-31 07:20:30 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-01-31 07:20:30 +0100 |
commit | aa62b1bc4317cce27b9c83610b8c558dab07e1dd (patch) | |
tree | 258db42268d0ce055ecf2f3574d8865c1615ca06 /fbcon.c | |
parent | 6c289d544115c7b5c8ca5ca2e4101d0543dc1564 (diff) | |
download | fbida-aa62b1bc4317cce27b9c83610b8c558dab07e1dd.tar.gz |
terminal reply
Diffstat (limited to 'fbcon.c')
-rw-r--r-- | fbcon.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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,""); |