huxerui.terminal
importCross-platform terminal emulator, PTY shell, and view component for HuxerUI
import huxerui.terminal;
模組名讀自上游 modules/terminal.cppm 裡的 `export module` 宣告。
mcpp add huxerui.terminal@0.1.0
用法
來自本倉庫自己的測試專案 —— CI 真的編譯並執行過,不是為了網站寫的。
import std;
import huxerui;
import huxerui.terminal;
namespace ht = huxerui::terminal;
namespace {
void Require(bool condition, std::string_view message) {
if (!condition) {
throw std::runtime_error(std::string(message));
}
}
struct AsyncState {
std::mutex mutex;
std::optional<ht::TerminalSession> view_session;
bool finished = false;
std::string error;
void Finish(std::string msg = {}) {
std::lock_guard lock(mutex);
// …
tests/examples/huxerui-terminal/tests/terminal.cpp · 專案 tests/examples/huxerui-terminal
建置 · 上游資訊清單
- modules
huxerui.terminal- targets
huxerui_terminal (lib), terminal (lib)- language
c++23- manifest version
0.1.0- dependencies
huxerui, compat- 來源
https://raw.githubusercontent.com/HuxerUI/Lib-Terminal/v0.1.0/mcpp.toml
版本
| 版本 | 平台 | 鏡像 | sha256 |
|---|---|---|---|
0.1.0 最新 |
LinuxWindowsmacOS | 來源 | f9723074d690… |