~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to roms/u-boot/include/ansi.h

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * (C) Copyright 2012
 
3
 * Pali Rohár <pali.rohar@gmail.com>
 
4
 *
 
5
 * SPDX-License-Identifier:     GPL-2.0+
 
6
 */
 
7
 
 
8
/*
 
9
 * ANSI terminal
 
10
 */
 
11
 
 
12
#define ANSI_CURSOR_UP                  "\e[%dA"
 
13
#define ANSI_CURSOR_DOWN                "\e[%dB"
 
14
#define ANSI_CURSOR_FORWARD             "\e[%dC"
 
15
#define ANSI_CURSOR_BACK                "\e[%dD"
 
16
#define ANSI_CURSOR_NEXTLINE            "\e[%dE"
 
17
#define ANSI_CURSOR_PREVIOUSLINE        "\e[%dF"
 
18
#define ANSI_CURSOR_COLUMN              "\e[%dG"
 
19
#define ANSI_CURSOR_POSITION            "\e[%d;%dH"
 
20
#define ANSI_CURSOR_SHOW                "\e[?25h"
 
21
#define ANSI_CURSOR_HIDE                "\e[?25l"
 
22
#define ANSI_CLEAR_CONSOLE              "\e[2J"
 
23
#define ANSI_CLEAR_LINE_TO_END          "\e[0K"
 
24
#define ANSI_CLEAR_LINE                 "\e[2K"
 
25
#define ANSI_COLOR_RESET                "\e[0m"
 
26
#define ANSI_COLOR_REVERSE              "\e[7m"