查找树,俄罗斯方块,系统编程开始
This commit is contained in:
14
Chapter12/C12-俄罗斯方块.md
Normal file
14
Chapter12/C12-俄罗斯方块.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# 俄罗斯方块
|
||||
|
||||
1. 图形
|
||||
|
||||
ANSI_VT,framebuffer
|
||||
|
||||
前者以光标为单位,后者以像素为单位。
|
||||
|
||||
推荐后者。
|
||||
|
||||
2. 输入设备
|
||||
|
||||
3. 并发
|
||||
|
||||
10
Chapter12/ansi_vt.c
Normal file
10
Chapter12/ansi_vt.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
// 以"\033"开头
|
||||
printf("\033[2J\033[1;1H\033[31;4mhello\n\033[0m");
|
||||
|
||||
exit(0);
|
||||
}
|
||||
Reference in New Issue
Block a user