ANSI escape codes can be printed to a shell to as instructions. The below is a list of codes I have used often in my CLI programs and I find myself looking up over and over again.
A great article about it can be found here.
| // UPDATE: For latest code, see https://github.com/cstrahan/Showdown.as | |
| // | |
| // Showdown.as -- An ActionScript port of showdown.js | |
| // | |
| // Copyright (c) 2010 Charles Strahan. | |
| // | |
| // Original Showdown Copyright (c) 2007 John Fraser. | |
| // <http://attacklab.net/showdown/> | |
| // | |
| // Original Markdown Copyright (c) 2004-2005 John Gruber |
| // Embed types for AS3 & Flex | |
| /* | |
| Note, mxmlc recognizes your src folder "Default Package" as '/' (root) when using: | |
| [Embed], source="@Embed('')" or @font-face tags. | |
| For example... if your assets folder is a sibling of the src folder, you access using | |
| the slightly odd path: |
| package src.Lib | |
| { | |
| /** | |
| * Enumerable.as | |
| * @version Dated 6 July 2011 | |
| * --------------- | |
| * Faux enumerations in Actionscript. Done through code reflection and static initializers. | |
| * | |
| * Adapted from: | |
| * http://scottbilas.com/2008/06/01/faking-enums-in-as3/ |
ANSI escape codes can be printed to a shell to as instructions. The below is a list of codes I have used often in my CLI programs and I find myself looking up over and over again.
A great article about it can be found here.