svn commit: trunk/busybox/console-tools

vda at busybox.net vda at busybox.net
Sat Sep 13 18:27:32 UTC 2008


Author: vda
Date: 2008-09-13 11:27:32 -0700 (Sat, 13 Sep 2008)
New Revision: 23390

Log:
setfont: add comments/TODOs, no code changes



Modified:
   trunk/busybox/console-tools/loadfont.c


Changeset:
Modified: trunk/busybox/console-tools/loadfont.c
===================================================================
--- trunk/busybox/console-tools/loadfont.c	2008-09-13 14:59:38 UTC (rev 23389)
+++ trunk/busybox/console-tools/loadfont.c	2008-09-13 18:27:32 UTC (rev 23390)
@@ -165,6 +165,39 @@
 }
 #endif
 
+/*
+kbd-1.12:
+
+setfont [-O font+umap.orig] [-o font.orig] [-om cmap.orig]
+[-ou umap.orig] [-N] [font.new ...] [-m cmap] [-u umap] [-C console]
+[-hNN] [-v] [-V]
+
+-h NN  Override font height
+-o file
+       Save previous font in file
+-O file
+       Save previous font and Unicode map in file
+-om file
+       Store console map in file
+-ou file
+       Save previous Unicode map in file
+-m file
+       Load console map or Unicode console map from file
+-u file
+       Load Unicode table describing the font from file
+       Example:
+       # cp866
+       0x00-0x7f       idem
+       #
+       0x80    U+0410  # CYRILLIC CAPITAL LETTER A
+       0x81    U+0411  # CYRILLIC CAPITAL LETTER BE
+       0x82    U+0412  # CYRILLIC CAPITAL LETTER VE
+-C console
+       Set the font for the indicated console
+-v     Verbose
+-V     Version
+*/
+
 #if ENABLE_SETFONT
 int setfont_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
 int setfont_main(int argc UNUSED_PARAM, char **argv)
@@ -188,6 +221,11 @@
 	if (option_mask32 & 1) { // -m
 		void *map = xmalloc_open_zipped_read_close(mapfilename, &len);
 		if (len == E_TABSZ || len == 2*E_TABSZ) {
+			//TODO: support textual Unicode console maps:
+			// 0x00 U+0000  #  NULL (NUL)
+			// 0x01 U+0001  #  START OF HEADING (SOH)
+			// 0x02 U+0002  #  START OF TEXT (STX)
+			// 0x03 U+0003  #  END OF TEXT (ETX)
 			xioctl(fd, (len == 2*E_TABSZ) ? PIO_UNISCRNMAP : PIO_SCRNMAP, map);
 		}
 	}




More information about the busybox-cvs mailing list