귀차니즘

Ansi code

투덜투덜2016. 3. 4. 12:06

이게 뭔고 하니 VT 통신 시절 쓰던 안시코드라는 거다... 아는 사람만 알테지

VT 화면을 어지럽게 수놓던 그것을 가능케 하는 것.

어쨌거나 M$ window 의 콘솔에서도 되는지가 필요할뿐...

리눅스는 되더라만...아무튼 M$ 는 마음에 드는게 별로 없어.

ANSI ESCAPE SEQUENCES
=============================================================================
Wherever you see '#', that should be replaced by the appropriate number.

        ESC code sequence                       Function
       -------------------              ---------------------------
Cursor Controls:
         ESC[#;#H or ESC[#;#f   Moves cusor to line #, column #
         ESC[#A                         Moves cursor up # lines
         ESC[#B                     Moves cursor down # lines
         ESC[#C                         Moves cursor forward # spaces
         ESC[#D                         Moves cursor back # spaces
         ESC[#;#R                      Reports current cursor line & column
       ESC[s                          Saves cursor position for recall later
         ESC[u                           Return to saved cursor position

Erase Functions:
         ESC[2J                         Clear screen and home cursor
         ESC[K                    Clear to end of line

Set Graphics Rendition:
         ESC[#;#;....;#m           Set display attributes where # is
                                            0 for normal display
                                            1 for bold on
                                            4 underline (mono only)
                                            5 blink on
                                            7 reverse video on
                                            8 nondisplayed (invisible)
                                            30 black foreground
                                            31 red foreground
                                            32 green foreground
                                            33 yellow foreground
                                            34 blue foreground
                                            35 magenta foreground
                                            36 cyan foreground
                                            37 white foreground
                                            40 black background
                                            41 red background
                                            42 green background
                                            43 yellow background
                                            44 blue background
                                            45 magenta background
                                            46 cyan background
                                            47 white background

         ESC[=#;7h or              Put screen in indicated mode where # is
         ESC[=h or                   0 for 40 x 25 black & white
         ESC[=0h or                 1 for 40 x 25 color
         ESC[?7h                  2 for 80 x 25 b&w
                                            3 for 80 x 25 color
                                            4 for 320 x 200 color graphics
                                            5 for 320 x 200 b & w graphics
                                6 for 640 x 200 b & w graphics
                                            7 to wrap at end of line

         ESC[=#;7l or ESC[=l or         Resets mode # set with above command
         ESC[=0l or ESC[?7l

Keyboard Reassignments:
         ESC[#;#;...p                   Keyboard reassignment. The first ASCII
         or ESC["string"p             code defines which code is to be
         or ESC[#;"string";#;        changed. The remaining codes define
            #;"string";#p               what it is to be changed to.

         E.g. Reassign the Q and q keys to the A and a keys (and vice versa).
         ESC [65;81p                    A becomes Q
         ESC [97;113p                   a becomes q
         ESC [81;65p                    Q becomes A
         ESC [113;97p                   q becomes a

         E.g. Reassign the F10 key to a DIR command.
         ESC [0;68;"dir";13p            The 0;68 is the extended ASCII code
                                        for the F10 key and 13 is the ASCII
                                        code for a carriage return.
        
         Other function key codes       F1=59,F2=60,F3=61,F4=62,F5=63
                                        F6=64,F7=65,F8=66,F9=67,F10=68

'투덜투덜' 카테고리의 다른 글

노래방에서 불러주면 좋을지도 모를 노래?!  (0) 2016.03.04

-고백할 때
김형중 - 그녀가 웃잖아
김동률 - 감사
원 모어 찬스 - 카페에 앉아
TIM - 사랑합니다

-찌질할 때
차태현 - 모르나요
2PM - I can't
성시경 - 두사람
버즈 - 가시
Crush - 가끔
izi - 응급실
최호섭 - 세월이 가면


-사귀는 사람에게
김종서 - 아름다운 구속


-권태기
버즈 - 남자를 몰라
리쌍 - 헤어지지 못하는 여자 떠나가지 못하는 남자


-청혼
쿨 - All for you


-돈 없어도 고백
버즈 - 사랑은 가슴이 시킨다

'투덜투덜' 카테고리의 다른 글

Ansi code  (0) 2016.03.04