ucs专用区域(普通16)—>终端drcs转换过滤器
drcsterm的Python项目详细描述
这是什么
DRCSTerm aims at reviving the DRCS(Dynamically Redefined Character Set) feature to the Terminal World. It provides the character mapping service which converts some UCS Private Area (Plain 16) characters to ISO-2022 designation sequences on your terminal.
启用/禁用映射
DRCSterm保留专用模式8800-8805
DRCSMMv1示例:
启用映射服务版本1:
CSI ? 8800 h
禁用映射服务版本1:
CSI ? 8800 l
映射规则
DRCSTerm uses UCS 16 Plane (U+100000-U+10FFFF). If output character stream includes characters in this range, such as;
U+10XXYY ( 0x40 <= 0xXX <=0x7E, 0x20 <= 0xYY <= 0x7F )DRCSTerm convert them into fllowing ISO-2022 Designatin Format:
ESC ( SP <\xXX> <\xYY> ESC ( B
安装
通过Github
$ git clone --recursive https://github.com/saitoha/drcsterm.git $ cd drcsterm $ python setup.py install
或通过PIP
$ pip install drcsterm
用法
$ drcsterm [options] command
选项:
-h, --help show this help message and exit --version show version -t TERM, --term=TERM override TERM environment variable
依赖性
- Hayaki Saito’s TFF, Terminal Filter Framework https://github.com/saitoha/tff
参考
- “VT320 Soft Character Sets” http://vt100.net/dec/vt320/soft_characters
- “VT100.net - DECDLD” http://vt100.net/docs/vt510-rm/DECDLD
- “RLogin” http://nanno.dip.jp/softlib/man/rlogin/ This terminal supports DECDLD
- “Soft Character Set (DRCS)” (Japanese) http://togetter.com/li/385813