[kbd] Feature Request: add the setvtrgb utility

Alexey Gladkov gladkov.alexey at gmail.com
Fri Apr 1 23:39:04 UTC 2011


29.03.2011 00:29, Dustin Kirkland wrote:
> We're carrying a new feature in Ubuntu's kbd package, provided by a
> neat little utility called /sbin/setvtrgb.

Thanks, I like the idea. I'm not quite happy with your implementation,
though:

I'm not sure that "char s[1024];" buffer is necessary;
Error diagnostics is difficult to understand;
Memory allocated by calloc() is never freed.

I wrote a different implementation (see attachment).
What do you think about it?

-- 
Rgrds, legion

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: setvtrgb.c
URL: <http://lists.altlinux.org/pipermail/kbd/attachments/20110402/0397eadd/attachment.c>


More information about the kbd mailing list