input: use events instead of threads
This commit is contained in:
parent
a22b192e23
commit
8ddc3d448e
22 changed files with 1027 additions and 597 deletions
|
|
@ -5,6 +5,8 @@
|
|||
|
||||
#include "terminal.h"
|
||||
|
||||
#include "../shared/indev.h"
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <limits.h>
|
||||
#include <stdio.h>
|
||||
|
|
@ -40,16 +42,17 @@ void bb_terminal_shrink_current() {
|
|||
if (fd < 0)
|
||||
return;
|
||||
|
||||
/* KDFONTOP returns EINVAL if we are not in the text mode,
|
||||
so we can skip this check */
|
||||
/*
|
||||
int mode;
|
||||
if (ioctl(fd, KDGETMODE, &mode) != 0)
|
||||
goto end;
|
||||
|
||||
if (mode != KD_TEXT)
|
||||
if (mode == KD_TEXT) {
|
||||
bbx_indev_resume();
|
||||
} else {
|
||||
bbx_indev_suspend();
|
||||
goto end;
|
||||
*/
|
||||
}
|
||||
|
||||
struct console_font_op cfo = {
|
||||
.op = KD_FONT_OP_GET,
|
||||
.width = UINT_MAX,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue