> This may seem a simple question, but I can't seem to find an answer > mentioned anywhere...what format is syslinux.dpy in? Specifically, what > format does it need to be in to show colors and symbols correctly. I'm > interested in rolling my own, and I'd like to make a nice display > screen. Any pointers to file format (ASCII, ANSI, whetever) or > appropriate editors would be appreciated.
Grab the syslinux distribution and read through syslinux.doc <excerpt> ++++ DISPLAY FILE FORMAT ++++ DISPLAY and function-key help files are text files in either DOS or UNIX format (with or without <CR>). In addition, the following special codes are interpreted: <FF> <FF> = <Ctrl-L> = ASCII 12 Clear the screen, home the cursor. Note that the screen is filled with the current display color. <SI><bg><fg> <SI> = <Ctrl-O> = ASCII 15 Set the display colors to the specified background and foreground colors, where <bg> and <fg> are hex digits, corresponding to the standard PC display attributes: 0 = black 8 = dark grey 1 = dark blue 9 = bright blue 2 = dark green a = bright green 3 = dark cyan b = bright cyan 4 = dark red c = bright red 5 = dark purple d = bright purple 6 = brown e = yellow 7 = light grey f = white Picking a bright color (8-f) for the background results in the corresponding dark color (0-7), with the foreground flashing. Colors are not visible over the serial console. <CAN>filename<newline> <CAN> = <Ctrl-X> = ASCII 24 If a VGA display is present, enter graphics mode and display the graphic included in the specified file. The file format is an ad hoc format called LSS16; the included Perl program "ppmtolss16" can be used to produce these images. This Perl program also includes the file format specification. The image is displayed in 640x480 16-color mode. Once in graphics mode, the display attributes (set by <SI> code sequences) work slightly differently: the background color is ignored, and the foreground colors are the 16 colors specified in the image file. For that reason, ppmtolss16 allows you to specify that certain colors should be assigned to specific color indicies. Color indicies 0 and 7, in particular, should be chosen with care: 0 is the background color, and 7 is the color used for the text printed by SYSLINUX itself. <EM> <EM> = <Ctrl-Y> = ASCII 25 If we are currently in graphics mode, return to text mode. <DLE>..<ETB> <Ctrl-P>..<Ctrl-W> = ASCII 16-23 These codes can be used to select which modes to print a certain part of the message file in. Each of these control characters select a specific set of modes (text screen, graphics screen, serial port) for which the output is actually displayed: Character Text Graph Serial ------------------------------------------------------ <DLE> = <Ctrl-P> = ASCII 16 No No No <DC1> = <Ctrl-Q> = ASCII 17 Yes No No <DC2> = <Ctrl-R> = ASCII 18 No Yes No <DC3> = <Ctrl-S> = ASCII 19 Yes Yes No <DC4> = <Ctrl-T> = ASCII 20 No No Yes <NAK> = <Ctrl-U> = ASCII 21 Yes No Yes <SYN> = <Ctrl-V> = ASCII 22 No Yes Yes <ETB> = <Ctrl-W> = ASCII 23 Yes Yes Yes For example: <DC1>Text mode<DC2>Graphics mode<DC4>Serial port<ETB> ... will actually print out which mode the console is in! <SUB> <SUB> = <Ctrl-Z> = ASCII 26 End of file (DOS convention). </excerpt> Charles Steinkuehler http://lrp.steinkuehler.net http://c0wz.steinkuehler.net (lrp.c0wz.com mirror) ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ------------------------------------------------------------------------ leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
