[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Mach console



On Wed, Jul 26, 2000 at 09:53:44PM +0200, Tomasz Wegrzanowski wrote:


> If you have 128 MB you can.
> With 64 MB minimal minimum.
>

Oh, I've that amount of ram (128 mb) :)

> > But... how should be implemented the color support?
> 
> Do you mean how as C code or how as where ?
> 
> where =
> 
> in userspace terminal emulator
> 
> C code (this is implementation-independent description, not how to patch Mach) =
> 
> a) add unsigned char atribute; to struct terminal
> b) change it when you get \e[ * m escape sequences
> c) modify output_char from 
>   terminal->vga_text_framebuffer [position] = terminal->character;
>   to 
>   { 
>     terminal->vga_text_framebuffer [position] = character;
>     terminal->vga_text_framebuffer [position + 1] = terminal->attribute;
>   }
> 
> easy, isn't it ?

yeah, it seems easy, but why nobody has already done this ?
I would try it when I can get all the cvs sources.

Bye!



Reply to: