NT-Shell run on Nucleo L053R8 Base on NT-Shell v0.2.0 http://www.cubeatsystems.com/firmware/ntshell/ntshell_en.html

Dependencies:   mbed

Committer:
kcy
Date:
Tue Apr 14 08:38:12 2015 +0000
Revision:
3:3d952c65f560
Parent:
2:438e2649030d
add show CPU information

Who changed what in which revision?

UserRevisionLine numberNew contents of line
kcy 1:3299b4ffd3db 1 /*
kcy 1:3299b4ffd3db 2 * VT100CtrlCode.h
kcy 1:3299b4ffd3db 3 *
kcy 1:3299b4ffd3db 4 * Created on: 2015/3/27
kcy 1:3299b4ffd3db 5 * Author: ChiaYen
kcy 1:3299b4ffd3db 6 */
kcy 1:3299b4ffd3db 7
kcy 1:3299b4ffd3db 8 #ifndef VT100CTRLCODE_H_
kcy 1:3299b4ffd3db 9 #define VT100CTRLCODE_H_
kcy 1:3299b4ffd3db 10
kcy 2:438e2649030d 11 // 16 Color
kcy 2:438e2649030d 12 // Foreground
kcy 1:3299b4ffd3db 13 #define ForegroundDefault "\e[39m"
kcy 1:3299b4ffd3db 14 #define ForegroundBlack "\e[30m"
kcy 1:3299b4ffd3db 15 #define ForegroundRed "\e[31m"
kcy 1:3299b4ffd3db 16 #define ForegroundGreen "\e[32m"
kcy 1:3299b4ffd3db 17 #define ForegroundYellow "\e[33m"
kcy 1:3299b4ffd3db 18 #define ForegroundBlue "\e[34m"
kcy 1:3299b4ffd3db 19 #define ForegroundMagenta "\e[35m"
kcy 1:3299b4ffd3db 20 #define ForegroundCyan "\e[36m"
kcy 1:3299b4ffd3db 21 #define ForegroundLightGray "\e[37m"
kcy 1:3299b4ffd3db 22 #define ForegroundDarkGray "\e[90m"
kcy 1:3299b4ffd3db 23 #define ForegroundLightRed "\e[91m"
kcy 1:3299b4ffd3db 24 #define ForegroundLightGreen "\e[92m"
kcy 1:3299b4ffd3db 25 #define ForegroundLightYellow "\e[93m"
kcy 1:3299b4ffd3db 26 #define ForegroundLightBlue "\e[94m"
kcy 1:3299b4ffd3db 27 #define ForegroundLightMagenta "\e[95m"
kcy 1:3299b4ffd3db 28 #define ForegroundLightCyan "\e[96m"
kcy 1:3299b4ffd3db 29 #define ForegroundWhite "\e[97m"
kcy 2:438e2649030d 30 // Background
kcy 1:3299b4ffd3db 31 #define BackgroundDefault "\e[49m"
kcy 1:3299b4ffd3db 32 #define BackgroundBlack "\e[40m"
kcy 1:3299b4ffd3db 33 #define BackgroundRed "\e[41m"
kcy 1:3299b4ffd3db 34 #define BackgroundGreen "\e[42m"
kcy 1:3299b4ffd3db 35 #define BackgroundYellow "\e[43m"
kcy 1:3299b4ffd3db 36 #define BackgroundBlue "\e[44m"
kcy 1:3299b4ffd3db 37 #define BackgroundMagenta "\e[45m"
kcy 1:3299b4ffd3db 38 #define BackgroundCyan "\e[46m"
kcy 1:3299b4ffd3db 39 #define BackgroundLightGray "\e[47m"
kcy 1:3299b4ffd3db 40 #define BackgroundDarkGray "\e[100m"
kcy 1:3299b4ffd3db 41 #define BackgroundLightRed "\e[101m"
kcy 1:3299b4ffd3db 42 #define BackgroundLightGreen "\e[102m"
kcy 1:3299b4ffd3db 43 #define BackgroundLightYellow "\e[103m"
kcy 1:3299b4ffd3db 44 #define BackgroundLightBlue "\e[104m"
kcy 1:3299b4ffd3db 45 #define BackgroundLightMagenta "\e[105m"
kcy 1:3299b4ffd3db 46 #define BackgroundLightCyan "\e[106m"
kcy 1:3299b4ffd3db 47 #define BackgroundWhite "\e[107m"
kcy 2:438e2649030d 48
kcy 2:438e2649030d 49 // Reset
kcy 1:3299b4ffd3db 50 #define ResetAll "\e[0m"
kcy 2:438e2649030d 51
kcy 2:438e2649030d 52 // 256 Color
kcy 2:438e2649030d 53 // Foreground
kcy 2:438e2649030d 54 #define Foreground256(color) "\e[38;5;"#color"m"
kcy 2:438e2649030d 55 // Background
kcy 2:438e2649030d 56 #define Background256(color) "\e[48;5;"#color"m"
kcy 1:3299b4ffd3db 57
kcy 1:3299b4ffd3db 58 #endif /* VT100CTRLCODE_H_ */
kcy 1:3299b4ffd3db 59