All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: linux-kernel@vger.kernel.org
Subject: Re: VGA Console Idea
Date: Tue, 4 Nov 2003 20:44:26 +0300	[thread overview]
Message-ID: <20031104204426.12c06ccb.vsu@altlinux.ru> (raw)
In-Reply-To: Pine.LNX.4.44.0311041813320.5053-100000@gaia.cela.pl

On Tue, 4 Nov 2003 18:20:06 +0100 (CET) Maciej Zenczykowski wrote:

> this is just an idea for a VGA text mode console improvement which would
> provide us with 512 char fonts with little functionality loss.
> 
> Basically we perform a bit inversion of the font bitmap, and then map
> foreground to background and background to foreground.  If we turn off the
> blink bit allowing high intensity background colours then we end up with
> 16 foreground colours, 8 background colours, no blink and no high
> intensity background colours.  Since both blink and bg high intensity are
> seldom used (since you can (not quite) never be sure if you'll get one or
> the other) we end up with a 16fg/8bg/512char font situation.  Everything
> works as expected except for direct memory access through vcs/vcsa, these
> would need to be nibble swapped in the colour area, but then with 512 char
> fonts these aren't exactly really supported anyway...  What do you think?

Unfortunately, this won't work, because the standard VGA text mode
uses funny tricks to convert 8x16 font bitmaps in memory to 9x16
bitmaps for real display (some graphic characters from the original
IBM charset are specially handled by the hardware).

However, for the framebuffer console (where we don't have hidden 9th
pixel column) this could be useful - it is certainly better to lose
high-intensity background (which almost nobody uses) than
high-intensity foreground (which is used much more often). Probably
this can be performed without actually inverting anything...

PS: I really use high-intensity background colors in VIM (though I
rarely run in in the console these days).


  reply	other threads:[~2003-11-04 17:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-04 17:20 VGA Console Idea Maciej Zenczykowski
2003-11-04 17:44 ` Sergey Vlasov [this message]
2003-11-04 18:07   ` Maciej Zenczykowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031104204426.12c06ccb.vsu@altlinux.ru \
    --to=vsu@altlinux.ru \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.