📄 setback.c
字号:
#include <conio.h>
void main(void)
{
union TextColor {
struct {
unsigned char foreground:4;
unsigned char background:3;
unsigned char blinking:1;
} color_bits;
unsigned char value;
} colors;
colors.color_bits.foreground = BLUE;
colors.color_bits.background = RED;
colors.color_bits.blinking = 1;
textattr(colors.value);
clrscr();
cprintf("This is the new text colors\n");
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -