PICSim
0.8.1
PICsim - PIC Simulator
Toggle main menu visibility
Main Page
Topics
Data Structures
Data Structures
Data Structure Index
Data Fields
All
Variables
Files
File List
Globals
All
_
g
h
p
r
s
w
Functions
g
p
r
w
Typedefs
Macros
•
All
Data Structures
Files
Functions
Variables
Typedefs
Macros
Modules
Pages
Loading...
Searching...
No Matches
ansi.h
1
#include <stdio.h>
2
#include <stdlib.h>
3
/*
4
some ansi functions
5
*/
6
#define BLACK 0
7
#define RED 1
8
#define GREEN 2
9
#define YELLOW 3
10
#define BLUE 4
11
#define MAGNETA 5
12
#define CYAN 6
13
#define WHITE 7
14
#define ANSI_GOTOXY(z,s) printf("\033[%d;%dH", (z), (s))
15
#define ANSI_CLEAR_SCREEN() printf("\033[2J")
16
#define ANSI_DEFAULT() printf("\033[0m")
17
#define ANSI_COLOR(f,b) printf("\033[%d;%dm", (f) + 30, (b) + 40)
18
#define ANSI_FG_LCOLOR(f) printf("\033[0;%dm", (f) + 30)
19
#define ANSI_FG_HCOLOR(f) printf("\033[1;%dm", (f) + 30)
20
21
22
//static int screenwidth, screenheight;
23
24
include
ansi.h
Generated by
1.9.8