/* LOCATE文の再現(^^;) */
#define STL_locate(x,y)	printf("\x1b=%c%c",(y)+32,(x)+32);

/* CLS! */
#define	STL_cls()	STL_puts("\x1b*"); STL_locate(0,0);

/* テキストの色とアトリビュートを戻す */
#define STL_normal_color()	STL_puts("\x1b[37;0m");

/* グラフ文字の表示マクロ */
#define STL_graph(ch)	putchar('\x1b'); putchar( (ch) );


void	STL_cursor_disp(int num);			/* カーソル表示切り換え */
void	STL_color(int color);		/* テキストの色とアトリビュートを指定 */
void	STL_rlocate(int x,int y);			/* 相対(relative)ロケート */
int		STL_puts(char *str);				/* 文字列表示 */

/* 色番号の文字列化 */
#ifndef	TXTCOLOR
#define	TXTCOLOR

#define	A_NORMAL	0						/* ふつ〜(^^;) */
#define	A_HIGH		1						/* 高輝度 */
#define	A_BLINK		5						/* ブリンク */
#define	A_REVERSE	7						/* 反転表示 */

#define	C_BLACK		30
#define	C_RED		31
#define	C_GREEN		32
#define	C_YELLOW	33
#define	C_BLUE		34
#define	C_PURPLE	35
#define	C_MAGENTA	35
#define	C_WATERBLUE	36
#define	C_SKYBLUE	36
#define	C_LIGHTBLUE	36
#define	C_WHITE		37

#endif
