wswidth(3)はロケールで判断するだろうからwcwidth(3)よりわずかにマシ程度の結果しか出せなくて、フォント情報を持っている端末に訊くエスケープシーケンスでないと良くならない。あと、これがあるとうれしいのはむしろアラビア文字を含むCTL書記系圏で、この辺の理解は日本語圏も弱い
wswidth(3)はロケールで判断するだろうからwcwidth(3)よりわずかにマシ程度の結果しか出せなくて、フォント情報を持っている端末に訊くエスケープシーケンスでないと良くならない。あと、これがあるとうれしいのはむしろアラビア文字を含むCTL書記系圏で、この辺の理解は日本語圏も弱い
senooken JP Social is a social network, courtesy of senooken. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.
All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.