mirror of
https://github.com/m1ngsama/TUT.git
synced 2025-12-24 10:51:46 +00:00
No description
|
|
||
|---|---|---|
| .github/workflows | ||
| src | ||
| .gitignore | ||
| CMakeLists.txt | ||
| README.md | ||
TUT - TUI Utility Tools (WIP)
This project, "TUT," is a collection of TUI (Terminal User Interface) utility modules written in C++. The initial focus is on the integrated ICS Calendar Module. This module fetches, parses, and displays iCal calendar events from https://ical.nbtca.space/nbtca.ics using ncurses to show upcoming activities within the next month.
依赖
- CMake ≥ 3.15
- C++17 编译器(macOS 上建议
clang) ncurseslibcurl
在 macOS (Homebrew) 安装依赖
brew install cmake ncurses curl
构建
在项目根目录执行:
mkdir -p build
cd build
cmake ..
cmake --build .
生成的可执行文件为 nbtca_tui。
运行
在 build 目录中运行:
./nbtca_tui
程序会:
- 通过
libcurl请求https://ical.nbtca.space/nbtca.ics - 解析所有 VEVENT 事件,提取开始时间、结束时间、标题、地点、描述
- 过滤出从当前时间起未来 30 天内的事件
- 使用 ncurses TUI 滚动展示列表
TUI 操作说明
↑/↓:上下移动选中事件q:退出程序
版本 (Version)
v0.0.1