https://github.com/xiaq/wcswidth-aas
wcswidth as a service
https://github.com/xiaq/wcswidth-aas
Last synced: about 1 year ago
JSON representation
wcswidth as a service
- Host: GitHub
- URL: https://github.com/xiaq/wcswidth-aas
- Owner: xiaq
- Created: 2016-03-17T15:43:55.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-17T16:15:37.000Z (over 10 years ago)
- Last Synced: 2025-03-19T19:29:44.118Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 85 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wcswidth as a service
Terminals don't know how wide characters really are :disappointed::disappointed::disappointed::


wcswidth-as-a-service to the rescue :smile::smile::smile:! Simply GET a path to obtain its width:
```sh
> curl http://wcwidth.xiaq.me/Hello
5
> curl http://wcwidth.xiaq.me/こんいちは
10
> curl http://wcwidth.xiaq.me/蛤蛤
4
> curl http://wcwidth.xiaq.me/🌚
2
```
What to do next:
- [ ] Replace `wcswidth` implementations in glibc, Cairo, vim, libvte and tmux with a dead-simple HTTP GET
- [ ] ... Profit!