Hi Laszlo,
The TERM_ATTACH call is not purely for the keyboard. This call attaches the VDA driver to the ANSI terminal emulation. In order for character output to go to a VDA device, it must go through something that converts escape sequences into VDA calls. The TERM driver does this. When you boot your system, you should see something like this:
RomWBW HBIOS v3.4.0-rc.1, 2023-12-28
Mark IV [MK4_wbw] Z8S180-N @ 18.432MHz IO=0x40
0 MEM W/S, 1 I/O W/S, INT MODE 2, Z180 MMU
512KB ROM, 512KB RAM, RAMBANKS=0x10, RTCDEF=0x20
ASCI0: IO=0x40 ASCI W/BRG MODE=38400,8,N,1
ASCI1: IO=0x41 ASCI W/BRG MODE=38400,8,N,1
TMS: MODE=SCG IO=0x98
MD: FLASH=1 1=39F040 FLASH FILE SYSTEM ENABLED
MD: UNITS=2 ROMDISK=384KB RAMDISK=352KB
SD: MODE=MK4 FAST OPR=0x89 CNTR=0x4A TRDR=0x4B DEVICES=1
SD0: NO MEDIA
Unit Device Type Capacity/Mode
---------- ---------- ---------------- --------------------
Char 0 ASCI0: RS-232 38400,8,N,1
Char 1 ASCI1: RS-232 38400,8,N,1
Char 2 TERM0: Terminal Video 0,ANSI
Disk 0 MD0: RAM Disk 352KB,LBA
Disk 1 MD1: Flash Drive 384KB,LBA
Disk 2 SD0: SD Card --
Video 0 TMS0: CRT Text,40x24
Mark IV [MK4_wbw] Boot Loader
Boot [H=Help]:
The TMS driver is roughly equivalent to your EF9345 driver. The line starting with "Video 0" is the VDA video driver. Notice the line that starts with "Char 2". If you look at the right, you will see that Char 2 is attached to Video 0. So, Char 2 is the character interface for the VDA driver.
You should be able to use Char 2 just like any other serial device, but the output should go to your VDA driver. For example, from the Boot prompt, you could type "I 2" and the console should switch to Char 2 and you should see a Boot prompt on your EF9345.
It is critical that you see the TERM driver listed when you boot. If you do not, then something is wrong with the TERM_ATTACH call.
Thanks,
Wayne