DFBTerm DirectFB Terminal Emulator

From WebOS Internals

Revision as of 22:55, 20 July 2009 by Hopspitfire(talk | contribs)(New page: = Overview= This allows you to run a real terminal emulator on the palm pre locally. The disadvantage is that you need to stop the phone GUI first, and do a bit of setup. These are rough ...)

Keyboard remapping

Research

> > Unicode, there's no need to recode. You could do me a favor and
> > install the DirectFB-examples package and check if your keyboard is
> > correctly handled by df_input. This little test application should
> > show raw keyboard codes as well as the symbol associated by the kernel
> > keymap.

Actually want to use the below command so display isn't continually updated by the acceleramator changes (/dev/input/event2 is the keyboard only).

event1 (keypad1) - non-keyboard keys

silver button = (not detected, but hexdump shows it is on /dev/input/event1)

vibrate/ring switch = (not detected, but hexdump shows it is on /dev/input/event1)

Note that if you don't tell directfb "linux-input-devices=/dev/input/event1" it won't use this keypad. Adding this line to "/etc/directfbrc" seems to make things just work (and you don't seem to need to explicitly include event2 as well, but it couldn't hurt)

event2 (keypad0) - keyboard keys

TODO

Make use of the touchscreen

Virtual Keyboard-Video-Monitor (KVM) Switch

It would be great to be able to run DirectFB applications and LunaSysMgr at the same time, and switch between them. I haven't found a way of doing this yet, but here are the possibilities I've found so far:

Per-process namespaces ( http://glandium.org/blog/?p=217 ) - I'm looking for a way of doing a sort of in-computer keybaord-video-monitor switch - have 2 applications that expect sole control of /dev/fb0 and /dev/input/* devices, want to be able to switch between them (with the background one just getting no i/o). This might be possible by giving each application a different /dev/fb0 and set of /dev/input/* devices, and then somehow hooking and unhooking those from the "real" devices (maybe with just like "cat").