diff options
author | Alex Auvolat <alex@adnab.me> | 2015-03-13 16:16:43 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2015-03-13 16:16:43 +0100 |
commit | 5bc7fcc00507bbc5ff5bf957a1589209f8495534 (patch) | |
tree | f18969c395f6e74e0f299948e376abbe74577f68 /src/sysbin/terminal | |
parent | 41a4f5309ef298da764bf1dca1254e734a4417f0 (diff) | |
download | kogata-5bc7fcc00507bbc5ff5bf957a1589209f8495534.tar.gz kogata-5bc7fcc00507bbc5ff5bf957a1589209f8495534.zip |
Shell begins to be usefull.
Diffstat (limited to 'src/sysbin/terminal')
-rw-r--r-- | src/sysbin/terminal/main.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/sysbin/terminal/main.c b/src/sysbin/terminal/main.c index 133736b..1174305 100644 --- a/src/sysbin/terminal/main.c +++ b/src/sysbin/terminal/main.c @@ -231,13 +231,7 @@ void c_buffer_info(gip_handler_t *s, gip_msg_header *p, gip_buffer_info_msg *m) void c_key_down(gip_handler_t *s, gip_msg_header *p) { term_t *c = (term_t*)s->data; - keyboard_press(c->kb, p->arg); -} - -void c_key_up(gip_handler_t *s, gip_msg_header *p) { - term_t *c = (term_t*)s->data; - - key_t k = keyboard_release(c->kb, p->arg); + key_t k = keyboard_press(c->kb, p->arg); c->wr_c_buf = 0; if (k.flags & KBD_CHAR) { @@ -250,6 +244,12 @@ void c_key_up(gip_handler_t *s, gip_msg_header *p) { mainloop_nonblocking_write(&c->app, &c->wr_c_buf, 1, false); } +void c_key_up(gip_handler_t *s, gip_msg_header *p) { + term_t *c = (term_t*)s->data; + + keyboard_release(c->kb, p->arg); +} + void c_unknown_msg(gip_handler_t *s, gip_msg_header *p) { // TODO } |