# sculk-tui

Minecraft P2P multiplayer tunnel TUI client, built on [sculk](https://crates.io/crates/sculk) + [ratatui](https://crates.io/crates/ratatui).

## Installation

```sh
cargo install sculk-tui
```

## Usage

```sh
sckt
```

Three modes: `Host / Join / Relay`

### Key Bindings

| Key | Action |
|---|---|
| `←` / `→` | Switch mode |
| `Tab` | Toggle focus (config / log) |
| `↑` / `↓` | Navigate fields or scroll log |
| `Enter` | Start/stop tunnel, or apply relay |
| `e` | Edit field |
| `q` | Quit editing |
| `h` | Help |
| `c` | Clear log |
| `Esc×2` | Exit |

---

## 中文说明

Minecraft P2P 联机隧道终端图形客户端，基于 [sculk](https://crates.io/crates/sculk) + [ratatui](https://crates.io/crates/ratatui)。

### 安装

```sh
cargo install sculk-tui
```

### 使用

```sh
sckt
```

三个模式：`建房 / 加入 / 中继`

### 按键绑定

| 按键 | 功能 |
|---|---|
| `←` / `→` | 切换模式 |
| `Tab` | 切换焦点（配置/日志） |
| `↑` / `↓` | 切字段或滚动日志 |
| `Enter` | 启动/停止隧道，或应用中继 |
| `e` | 编辑字段 |
| `q` | 退出编辑 |
| `h` | 帮助 |
| `c` | 清空日志 |
| `Esc×2` | 退出 |

更多信息见[项目主页](https://github.com/KercyDing/sculk)。
