aboutsummaryrefslogtreecommitdiffstats
path: root/events.c
blob: 95eaa53bb683283558434394b13120512791bdf9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "runes.h"

void runes_handle_keyboard_event(RunesTerm *t, char *buf, size_t len)
{
    runes_pty_backend_write(t, buf, len);
}

void runes_handle_pty_read(RunesTerm *t, char *buf, ssize_t len)
{
    runes_display_glyph(t, buf, len);
}

void runes_handle_pty_close(RunesTerm *t)
{
    runes_window_backend_request_close(t);
}

void runes_handle_close_window(RunesTerm *t)
{
    runes_pty_backend_request_close(t);
}