Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wuhanstudio/vt100
vt100 终端绘图库
https://github.com/wuhanstudio/vt100
posix terminal vt100
Last synced: 16 days ago
JSON representation
vt100 终端绘图库
- Host: GitHub
- URL: https://github.com/wuhanstudio/vt100
- Owner: wuhanstudio
- License: mit
- Created: 2019-08-24T10:47:02.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-12-07T16:39:27.000Z (about 3 years ago)
- Last Synced: 2023-03-05T16:14:26.466Z (almost 2 years ago)
- Topics: posix, terminal, vt100
- Language: C
- Homepage:
- Size: 508 KB
- Stars: 17
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-rt-thread - vt100 - Iridescent drawing library on MSH. (Packages / Multimedia)
- awesome-rt-thread - vt100 - Iridescent drawing library on MSH. (Packages / Multimedia)
README
## VT-100
RT-Thread 的终端 msh 一直是一个非常受大家欢迎的组件,但是终端只能打印基本的字符未免有些单调了,于是我封装了 ANSI Escape 标准,这样就可以在 msh 里实现更加丰富的图形界面了,例如动画和游戏开发。
## 显示图片
在 examples 目录下有个直接 jpg 生成 C 代码的小工具:
```
python img2rgb888_cwh.py minions.png
```然后就可以在控制台打印图片了
```C
#include
#include#include
#include "minions.h"void vt_rgb_buf(int argc, char* arvg[])
{
vt_draw_rgb888(minions, minions_w, minions_h);
}
MSH_CMD_EXPORT(vt_rgb_buf, draw RGB image in console)
```![](doc/minions.png)
### 实时控制台
![](./doc/monitor.png)
### 绘制色条矩形
![](./doc/color.png)
## 联系方式
- 维护:Wu Han
- 主页:http://wuhanstudio.cc
- 联系:https://github.com/wuhanstudio/vt100/issues