commit | 6db7bd6791244fb0ba4bbd58526acae93cf77899 | [log] [download] |
---|---|---|
author | Nicholas Marriott <nicholas.marriott@gmail.com> | Tue May 19 16:08:35 2009 +0000 |
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | Tue May 19 16:08:35 2009 +0000 |
tree | 82a972cb1b46f3878c7ef53ce39d5fd0b8484901 | |
parent | 5db59a0d20d45d7dd961acdd0fc56714041cab55 [diff] |
Try to guess if the window is UTF-8 by outputting a three-byte UTF-8 wide character and seeing how much the cursor moves. Currently tries to figure out if this works by some stupid checks on the terminal, these need to be rethought. Also might be better using a width 1 character rather than width 2.