Skip to content

Commit d3df7a8

Browse files
committed
LINUX VT52 escapes emulation modified
изменено: ansiesc.h изменено: cpm.c
1 parent e9214de commit d3df7a8

File tree

2 files changed

+170
-110
lines changed

2 files changed

+170
-110
lines changed

ansiesc.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,21 @@ void restoreConsole(void);
3434
void getCursorPosition(int *row, int *col);
3535

3636
static inline void setTextColor(int code) {
37-
printf("\x1b[%dm", code);
37+
printf("\x1b[3%dm", code);
3838
}
3939

4040
static inline void setTextColorBright(int code) {
41-
printf("\x1b[%d;1m", code);
41+
printf("\x1b[3%d;1m", code);
4242
}
4343

4444
static inline void setBackgroundColor(int code) {
45-
printf("\x1b[%dm", code);
45+
printf("\x1b[4%dm", code);
4646
}
4747

4848
static inline void setBackgroundColorBright(int code) {
49-
printf("\x1b[%d;1m", code);
49+
printf("\x1b[4%d;1m", code);
5050
}
51-
51+
5252
static inline void resetColor(void) {
5353
printf("\x1b[%dm", RESET_COLOR);
5454
}

0 commit comments

Comments
 (0)