SuperAPI AI 工具集

claude-arabic

办公与效率

查看项目

更新于 10-15 22:40

技能介绍

用途:解决 VS Code 的 xterm.js 终端无法正确渲染从右到左文字的问题,避免阿拉伯语字母断开、词序颠倒。它安装一个 VS Code 扩展,在伪终端中运行 Claude Code,将屏幕保留在无头终端模拟器中并以 HTML 渲染,由浏览器引擎完成文字整形和双向排版。

主要能力:提供 arabic 启动器来启动 Claude Code;Claude Code 的所有参数可原样传递,例如 arabic claude --dangerously-skip-permissions、arabic claude --resume、arabic claude --model opus;可改用编辑器标签页打开。

使用方式:先确认 git、node 18+、npm、Claude Code CLI 和带 code 命令的 VS Code 已安装。macOS/Linux 运行 curl -fsSL https://raw.githubusercontent.com/JamalMohafil/claude-arabic-terminal/main/install.sh | bash;Windows PowerShell 运行 irm https://raw.githubusercontent.com/JamalMohafil/claude-arabic-terminal/main/install.ps1 | iex。安装脚本会把仓库克隆到 ~/.claude-arabic-terminal,执行 npm install,将扩展链接到 ~/.vscode/extensions,并把 arabic 启动器放入 ~/.local/bin。之后重载 VS Code 窗口,在任意终端运行 arabic claude。仓库地址为 https://github.com/JamalMohafil/claude-arabic-terminal。

限制:依赖上述前置环境;首次启动需在 URI 对话框中允许扩展打开;若报 arabic: command not found 需新开终端;若 macOS 出现 posix_spawnp failed 需执行 chmod +x ~/.claude-arabic-terminal/node_modules/node-pty/prebuilds/*/spawn-helper;卸载可删除 ~/.claude-arabic-terminal、对应扩展目录和 ~/.local/bin/arabic。其它未在资料中说明的功能、收费与支持平台暂未提供。