Re: How many colors?

Witold Filipczyk <[email protected]> Tue, 18 Sep 2007 21:01:13 +0200
Newsgroups gmane.linux.fbdev.user
Message-ID <20070918190113.GA24931@pldmachine>
Hi!
I modified the iterm library and its fbiterm program.
New fbiterm displays 256 colors on the framebuffer.
Original iterm-0.5-mbt.tar.gz you could get from:
http://republika.pl/rkd/iterm-0.5-mbt.tar.gz

The bunch of patches:
http://republika.pl/rkd/iterm.tar.bz2

Apply patches in the order shown in the iterm.sh.
iterm.sh is included in the tarball.

fbiterm uses PCF fonts used by the X Window.
Usage:
$ fbiterm -a normal_font -b bold_font, eg.
$ fbiterm -a /usr/share/fonts/misc/9x18.pcf.gz -b /usr/share/fonts/misc/9x18B.pcf.gz

Unfortunately scrolling is slow.
It could be faster if the kernel provides ioctl for copyarea. Something like this,
drivers/video/fbmem.c (fb_ioctl):

	struct fb_copyarea copy;

	case FBIO_COPYAREA:
		argp = (void __user *)arg;
		if (copy_from_user(&copy, argp, sizeof(copy)))
			return -EINVAL;
		fb->fb_copyarea(info, &copy);
		return 0;

I use kernel 2.6.19, so this snippet may be obsolete.

Is it possible to add such ioctl to the kernel?

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/