松尾です。 タイトルを変更しました。 コマンドの中で、文字長に関連するものをピックアップしました。 - 文字区切り - str2code https://ttssh2.osdn.jp/manual/5/ja/macro/command/str2code.html - 引数にpos(or index)あり - strcopy https://ttssh2.osdn.jp/manual/5/ja/macro/command/strcopy.html - strinsert https://ttssh2.osdn.jp/manual/5/ja/macro/command/strinsert.html - strremove https://ttssh2.osdn.jp/manual/5/ja/macro/command/strremove.html - strreplace https://ttssh2.osdn.jp/manual/5/ja/macro/command/strreplace.html - 戻り値 - strlen https://ttssh2.osdn.jp/manual/5/ja/macro/command/strlen.html - 戻り値がバイト数 - strmatch https://ttssh2.osdn.jp/manual/5/ja/macro/command/strmatch.html resultがマッチ位置(バイト数) ソースを見たところ文字の長さ(位置)はすべてバイト数になっています。 strmatch の戻り値もバイト数のようです。 code2str と str2code の動作で、 code2str https://ttssh2.osdn.jp/manual/5/ja/macro/command/code2str.html ASCIIコード値となっているところを Unicodeのコードポイントとすればよいのかなと思いました。 この修正も5.0の後にしましょうか。