root/as3/ColorLog/trunk/examples/TestESCCodes.as
| リビジョン 2610, 500 bytes (コミッタ: saqoosha, コミット時期: 3 年 前) |
|---|
| Line | |
|---|---|
| 1 | package { |
| 2 | |
| 3 | import flash.display.Sprite; |
| 4 | |
| 5 | import net.saqoosha.colorlog.ESCCodes; |
| 6 | import net.saqoosha.colorlog.SGR; |
| 7 | |
| 8 | public class TestESCCodes extends Sprite { |
| 9 | |
| 10 | public function TestESCCodes() { |
| 11 | trace([ |
| 12 | ESCCodes.ED(2), |
| 13 | ESCCodes.HideCursor, |
| 14 | ESCCodes.CUP(10, 20), |
| 15 | ESCCodes.SGR( |
| 16 | SGR.RESET, |
| 17 | SGR.INTENSITY_BOLD, |
| 18 | SGR.BLINK_SLOW, |
| 19 | SGR.FG_BRIGHT_WHITE, |
| 20 | SGR.BG_BRIGHT_RED |
| 21 | ), |
| 22 | 'Hello! Color World!', |
| 23 | ESCCodes.SGR(SGR.RESET) |
| 24 | ].join('')); |
| 25 | } |
| 26 | } |
| 27 | } |
Note: リポジトリブラウザについてのヘルプは TracBrowser を参照してください。

