Marco van de Voort wrote:
Pretty much the same here. The IDE implements some extra things to obtain a better look and feel, with a default for other cases (telnet/xterm).
Things like working alt-keys (kind of X mode, requires ctrl-alt to switch terms),
That's one thing I would certainly *not* do in a normal app. It's the user's choice what Alt-Fn should do. The default (unfortunately) is to chvt, but it's easy to change it (and I did so on my system). So the apps should (and mine do) handle Alt-Fn normally (perhaps providing an alternative, like I do with Alt-n) and not mess the keyboard mode.
First tests indicate that I can get raw scan codes on FreeBSD via ioctl, but don't like that approach. (renders the keyboard unusuable if your handler hangs, and/or the exit is not graceful)
And, worst of all, destroys the user's key mapping. I wouldn't use any program which does this.
The odd part is that all code works fine on telnet/linux/in xterm, and only fails on FreeBSD console.
I guess it's a FreeBSD console problem then. (Do I get the price for the most clever answer of the year? ;-)
Frank