uobikiemukot / yaft

yet another framebuffer terminal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Please help! if you not lose this project.

zhenyolka opened this issue · comments

Hello!
Sorry for my English.
I compile yaft terminal for arm, android(not android version, i compile linux version)
Yaft work perfect, but i cant connect keyboard from /dev/input/event6 (it virtual framebuffer keyboard. keyboard work good). if i start keyboard in android terminal, android can use this keyboard(in settings keyboard display as hardware keyboard).
How connect keyboard to your terminal.

I cannot test your environment by myself.
So I don't know whether this approach is correct or not.

yaft always reads "STDIN_FILENO" as input.
Maybe you need to use "/dev/input/event6" instead of "STDIN_FILENO".

  • yaft.c
		if (check_fds(&fds, &tv, STDIN_FILENO, term.fd) == -1)
			continue;

Data format of "/dev/input/event*" is completely different from stdin.
You should convert raw keyboard event to ascii code before ewrite().

  • yaft.c
			if ((size = read(STDIN_FILENO, buf, BUFSIZE)) > 0)
				some_convert_function_here(buf, BUFSIZE);
				ewrite(term.fd, buf, size);

good luck