From owner-freebsd-hackers Sat Dec 9 12:41:38 2000 From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 9 12:41:36 2000 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mailhost.tue.nl (mailhost.tue.nl [131.155.2.5]) by hub.freebsd.org (Postfix) with ESMTP id 6B2CC37B400 for ; Sat, 9 Dec 2000 12:41:34 -0800 (PST) Received: from hermes.tue.nl (hermes.tue.nl [131.155.2.46]) by mailhost.tue.nl (8.11.0/8.11.0) with ESMTP id eB9KfXx20835 for ; Sat, 9 Dec 2000 21:41:33 +0100 (MET) Received: from deathstar (t-27-122.athome.tue.nl [131.155.228.122]) by hermes.tue.nl (Postfix) with ESMTP id B4C372E802 for ; Sat, 9 Dec 2000 21:41:32 +0100 (CET) From: "Marco van de Voort" To: hackers@freebsd.org Date: Sat, 9 Dec 2000 21:41:35 +0100 Subject: Text console programming on a low level. Message-ID: <3A32A70F.20316.23C44FD@localhost> Priority: normal X-mailer: Pegasus Mail for Win32 (v3.12c) Sender: marcov@toad.stack.nl Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I've ported a Linux app, but am still having some problems with a fullscreen textmode editor to work with FreeBSD consoles. (I already use NCurses, but I don't think I'm doing it right) The problems are many: - Codepages. Is there anyway to force cp437, for linedrawing? (or even better on the phys console, work in 512 character font mode, saving the original font) The fact that Midnight Commander doesn't use all linedrawing chars is worrying :-) - Keyboard. mainly the extended keys. (alt, ctrl, F-keys) - Mouse support (console, xterm) Of course I want it to work on as many consoles as possible, but for now standard telnet between PCs (FreeBSD and Linux standard clients + some win32 clients like putty and dtelnet) The win32 clients are already working quite right, and I can even get the Linux and FreeBSD clients to work (by killing off some code for the linux console) However the physical (the default one from FreeBSD 4.2 btw, I assume it is syscons) console hardly does anything. When I set the terminal to one of the vtxxx terminals I can get some life out of it, but cons25 totally messes up. Are there some ((Free)BSD specific) docs about this? Or other "really" fullscreen textconsole programs (so with extended keys, mouse and codepage support) as examples? I already went through Ncurses docs, but those are more generic in nature. Marco van de Voort (MarcoV@Stack.nl or marco@freepascal.org) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message