____ ____ ____ ____ ____ ____ _ _ ___ ____ ( _ \( ___)( ___)( ___)( _ \( ___)( \( ) / __)( ___) ) / )__) )__) )__) ) / )__) ) ( ( (__ )__) (_)\_)(____)(__) (____)(_)\_)(____)(_)\_) \___)(____) (My English is poor, sorry)
1.) ESC-Sequences ========================================================================== A) Supported ESC-Sequences: -------------------------------------------------------------------------- - Cursor position : ESC[...H,f,A,B,C,D,s,u - Clear screen : ESC[2J - Delete row : ESC[K - Colors : ESC[...m (supported values : foreground color 30-37 background color 40-47 attribute 0 (dark colors) attribute 1 (light colors) all other attributes will be ignored ) B) Forbidden ESC-Sequences: -------------------------------------------------------------------------- - Change Screen mode : ESC[=...h,l - Redefine Keyboard : ESC[...p - Sound ... WARNING: THIS SEQUENCES MUST BE REMOVED ! 2.) Characters: ========================================================================== A.) Supported Characters: -------------------------------------------------------------------------- - All ASCII characters from 32-255. (applet uses a built-in font with the 'ASCII-IBM extended character set') B.) Forbidden Characters: -------------------------------------------------------------------------- - Applet control characters () -> the program converts them automatic - HTML control characters (",<,>) -> the program converts them automatic - All control characters (0-31) -> NOT CONVERTED ! except from CR/LN -> converted to ä WARNING: Control characters aren't submitted. Some ANSI's use them as paint characters. The applet leaves them blank. This char. must/should be replaced. 3.) Problems: ========================================================================== - The Applet didn't word wrap at the correct position: The reason is often a unsupported ESC-Sequence, which is interpreted as character. Open the file and have a look at the beginning of the data parameter. Some programs add a Screen mode sequence at the beginning. Remove this sequence. Example: ^^^^^^^^ 3h[2J -> remove '3h' [=...2J -> remove '[=...' - The applet leaves away characters. ANSI art uses sometimes control characters (0-31). These characters aren't supported. Replace them. - The Applet displays all ESC-Sequences as text and didn't interpret them. The file has been edited with a program which has removed the control characters. PLEASE EDIT THE FILE ONLY WITH A PLAIN-TEXT EDITOR !!!!!!!!!!!!!!!!!!!!! Example: (Windows) ^^^^^^^^ Windows/Notepad.exe -> can be used , plain-text editor Windows/Wordpad.exe -> can't be used, rich-text editor Notepad+ (freeware) -> can't be used, looks like a plain-text editor but removes the control char. 4.) Technical information: ========================================================================== - The applet always initialize with a 'clear screen' Sequence ([2J) - ~ 25 KB of the applet are the built-in font. - The applet should be used with a relative path. The result is that the applet must only be downloaded one time. After that the browser takes it from the cache. Example: '../JAVA/mephansi.class' 'mephansi.class' - If you want to send ANSI files direct to the applet (JAVA Script, CGI), leave the 'data' parameter empty and send them direct to the applet method. The data MUST have the Applet format (not ANSI). Example: JAVA Script -> document.dynansi.neu(aus); - dynansi = name of the applet (variable) - neu() = method name - aus = data (variable) [ a demo can be found @: http://studenten.freepage.de/meph/ascii/other/ansi/applet.htm ] - JAVA archive: You can use a compressed 'jar' archive. The file size is only 6.5 KB, but the browser needs to decompress the file. If you don't have the JDK you can create the file with WinZip. Create a archive with the 'mephansi.class' and rename it to 'mephansi.jar'. HTML tag example: (more infos @ http://java.sun.com ) <APPLET CODE="mephansi.class" ARCHIVE="mephansi.jar" WIDTH=640 HEIGHT=350> 5.) Usage: ========================================================================== HTML code (Example): <APPLET CODE=mephansi.class WIDTH=640 HEIGHT=350> <PARAM NAME=copyright VALUE="Meph. is a alien"> <PARAM NAME=label VALUE=" . . . "> <PARAM NAME=scrolling VALUE="No"> <PARAM NAME=WidthInChar VALUE="80"> </APPLET> scrolling = optional, default=true WidthInChar = optional, default=80 6.) Greeting: ========================================================================== Hi Joe, after the ANSI2HTMLtable, ANSI2HTML with download font, ... her comes the ANSI applet. I think this should be enough possibilities to implement your ANSI's in HTML. All need a 4+ (3+) browser. 7.) Suggestions, bug reports: ========================================================================== If there are any problems (which aren't described above), suggestions, wishes,... feel free to send me a mail (please attach the file which makes problems in uuencoded format). Possibly you can send me a link, if you use the file on your page. Thanks. 8.) Copyright: ========================================================================== Free for non commercial use, no warranty or other guarantee of fitness for this software. (c) 1999 Marc Schmitz (Meph.)
- B A C K -
+----------------------------------------------------------------------+
|      #   #          __    __      _____   _____    __    __          |
|   # #     # #       \#\  /#/     /####/  (#####\  (##\  /##)         |
|  #  #     #  #      ()#\/#()    (#(__     )#)_)#)  \##__)#/          |
|  #  #     #  #      /######\     )###)   (#####/    )####(           |
|  #  #  #  #  #     /#/ \/ \#\   (#(       )#)      (#(  )#)          |
|  #  # ### #  #    /#/      \#\   \#\___  (#(        )#)(#(    __     |
|  #  # ### #  #   (/          \)   \####\ /##\      /#/  \#\  (##)    |
|  #  # ### #  #   _________________________________________________   |
|  #############   /////////////////////////////////////////////////   |
|     #######                                                          |
|  ### ##### ###                                                       |
| #### ##M## ####  Index page:                                         |
| #  # ##E## #  #  http://studenten.freepage.de/meph/ascii/ascii.htm   |
| #  # ##P## #  #                                                      |
| #  # ##H## #  #  English "fast-link" page:                           |
|  # #  ### #  #   http://studenten.freepage.de/meph/ascii/eng/eng.htm |
|  #  #  #  #  #                                                       |
|  #  #     # #                                                        |
+----------------------------------------------------------------------+