Re: [RFC] [JUST DEMO] commands: implement 'fbputs' command

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

 



On Sun, Jan 25, 2015 at 05:21:30PM +0300, Antony Pavlov wrote:
> Mainline barebox at the moment has no framebuffer
> console support.
> The 'fbputs' demo command displays a text string
> on fb device.
> 
> This quick-n-dirty patch demonstates that barebox
> framebuffer console can be easely realized.
> 
> I'm awaiting your comments!

Unfortunately real console support is not that simple, we would have to
parse ANSI escape sequences up to some point to make it generally usable.

Jean Christophe has framebuffer console patches, he'll probably comment
on this one aswell.
Personally I would be fine with your simple approach until real console
support arrives.

> +static void drawchar(struct screen *sc, int x, int y, char c)
> +{
> +	void *buf;
> +
> +	buf = gui_screen_redering_buffer(sc);
> +
> +	rgba_blend(&sc->info, chars[(int)c],
> +		buf, VIDEO_FONT_HEIGHT, VIDEO_FONT_WIDTH,
> +		VIDEO_FONT_WIDTH * x, VIDEO_FONT_HEIGHT * y, 1);

Is this performant enough? I would assume the whole character set should
be prerendered for the actual framebuffer format before printing a
string.

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux