; Demo file showing what can be done with the ANSI capabilities of the ; replacement echo ("ansiecho") command. ; Remember that if you need to output semicolons, put *everything* in quotes. ; Sequences are split into multiple echoes in order to introduce a delay ; effect -- ansiecho is quite happy with maximum size (255) command lines. ; Perpetrator: Dewi Williams ..!ihnp4!druca!dewi ansiecho \f ; clears the window ansiecho \e[10E\e[13C\c ansiecho \e[37mThis is a demonstration of ANSI echo sequences\e[0m ansiecho \e[13C---------------------------------------------- wait 1 ; Now do some slow-ish scrolling. ansiecho \e[2S\c ansiecho \e[2S\c ansiecho \e[2S\c ansiecho \e[2S\c ansiecho "\e[2S\e[4;1H\c" ansiecho This echo allows full access to the ANSI X3.64 codes for the CON: driver. ansiecho These allow the following capabilities: ansiecho "\e[10C\e[37mScrolling\e[0m\e[6;40Hboth up and down" ansiecho "\e[10C\e[37mColor change\e[0m\e[7;40Has already demonstrated" wait 1 ansiecho "\e[10C\e[37mCursor movement\e[0m\e[20;40H\c" wait 1 ansiecho "to over here...\e[8;40H\c" wait 1 ansiecho "\e[20;40H\e[1M\e[9;11H\c" ansiecho "\e[37mErase to end of line\e[0m\e[9;40Htext soon to disappear...\c" ansiecho "\e[9;40H\c" wait 1 ansiecho "\e[9;40H\e[1K\c" wait 1 ansiecho "\n\e[10C\e[37mIns Character\e[0m\e[10;37Hinsert space & shift right\c" wait 2 ansiecho "\e[10;14H\e[3@\c" wait 1 ansiecho "ert\c" wait 1 ansiecho "\e[11;11H\e[37mDelete Charac\e[mXX\e[37mter\e[0m\c" ansiecho "\e[11;42Hdelete & shift left\c" wait 1 ansiecho "\e[11;24H\c" wait 1 ansiecho "\e[2P" ansiecho "\e[12;11H\e[37mInsert Line\e[m\c" wait 1 ansiecho "\e[1L\e[13;40Hlike so..." ; Now start moving the main body of the text slowly out of sight. ; Do this by repetitive single insert line calls -- otherwise it'll ; just shoot on by... wait 2 ansiecho "\e[4;1H\e[1L\c" ansiecho \e[1L\c ansiecho \e[1L\c ansiecho \e[1L\c ansiecho \e[1L\c ansiecho \e[1L\c ansiecho \e[1L\c ansiecho \e[1L\c ansiecho \e[1L\c ansiecho \e[1L\c ansiecho \e[1L\c ansiecho \e[1L\c ansiecho \e[1L\c ansiecho \e[1L\c ansiecho \e[1L\c ansiecho \e[1L\c ansiecho \e[1L\c ansiecho \e[1L\c ansiecho \e[1L\c ansiecho \e[1L\c ansiecho "\e[7;16HHave fun brightening up your command files!" wait 1 ansiecho \e[37m\c ansiecho "\e[7;15HHave fun brightening up your command files!" ansiecho \e[0m\c ansiecho "\e[7;15HHave fun brightening up your command files!" ansiecho \e[37m\c ansiecho "\e[7;15HHave fun brightening up your command files!" ansiecho \e[0m\c ansiecho "\e[7;15HHave fun brightening up your command files!" ansiecho \e[37m\c ansiecho "\e[7;15HHave fun brightening up your command files!" ansiecho \e[0m\c ansiecho "\e[7;15HHave fun brightening up your command files!" ansiecho \e[37m\c ansiecho "\e[7;15HHave fun brightening up your command files!" ansiecho \e[0m\c ansiecho "\e[7;15HHave fun brightening up your command files!" ansiecho \e[37m\c ansiecho "\e[7;15HHave fun brightening up your command files!" ansiecho \e[0m\c ansiecho "\e[7;15HHave fun brightening up your command files!" wait 3