1*e7abe919SPali Rohár /* 2*e7abe919SPali Rohár * (C) Copyright 2012 3*e7abe919SPali Rohár * Pali Rohár <pali.rohar@gmail.com> 4*e7abe919SPali Rohár * 5*e7abe919SPali Rohár * See file CREDITS for list of people who contributed to this 6*e7abe919SPali Rohár * project. 7*e7abe919SPali Rohár * 8*e7abe919SPali Rohár * This program is free software; you can redistribute it and/or 9*e7abe919SPali Rohár * modify it under the terms of the GNU General Public License as 10*e7abe919SPali Rohár * published by the Free Software Foundation; either version 2 of 11*e7abe919SPali Rohár * the License, or (at your option) any later version. 12*e7abe919SPali Rohár * 13*e7abe919SPali Rohár * This program is distributed in the hope that it will be useful, 14*e7abe919SPali Rohár * but WITHOUT ANY WARRANTY; without even the implied warranty of 15*e7abe919SPali Rohár * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16*e7abe919SPali Rohár * GNU General Public License for more details. 17*e7abe919SPali Rohár * 18*e7abe919SPali Rohár * You should have received a copy of the GNU General Public License 19*e7abe919SPali Rohár * along with this program; if not, write to the Free Software 20*e7abe919SPali Rohár * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 21*e7abe919SPali Rohár * MA 02111-1307 USA 22*e7abe919SPali Rohár */ 23*e7abe919SPali Rohár 24*e7abe919SPali Rohár /* 25*e7abe919SPali Rohár * ANSI terminal 26*e7abe919SPali Rohár */ 27*e7abe919SPali Rohár 28*e7abe919SPali Rohár #define ANSI_CURSOR_UP "\e[%dA" 29*e7abe919SPali Rohár #define ANSI_CURSOR_DOWN "\e[%dB" 30*e7abe919SPali Rohár #define ANSI_CURSOR_FORWARD "\e[%dC" 31*e7abe919SPali Rohár #define ANSI_CURSOR_BACK "\e[%dD" 32*e7abe919SPali Rohár #define ANSI_CURSOR_NEXTLINE "\e[%dE" 33*e7abe919SPali Rohár #define ANSI_CURSOR_PREVIOUSLINE "\e[%dF" 34*e7abe919SPali Rohár #define ANSI_CURSOR_COLUMN "\e[%dG" 35*e7abe919SPali Rohár #define ANSI_CURSOR_POSITION "\e[%d;%dH" 36*e7abe919SPali Rohár #define ANSI_CURSOR_SHOW "\e[?25h" 37*e7abe919SPali Rohár #define ANSI_CURSOR_HIDE "\e[?25l" 38*e7abe919SPali Rohár #define ANSI_CLEAR_CONSOLE "\e[2J" 39*e7abe919SPali Rohár #define ANSI_CLEAR_LINE_TO_END "\e[0K" 40*e7abe919SPali Rohár #define ANSI_CLEAR_LINE "\e[2K" 41*e7abe919SPali Rohár #define ANSI_COLOR_RESET "\e[0m" 42*e7abe919SPali Rohár #define ANSI_COLOR_REVERSE "\e[7m" 43