aboutsummaryrefslogtreecommitdiff
path: root/utf8.c
Commit message (Collapse)AuthorAge
...
* | Merge branch 'obsd-master'Thomas Adam2015-11-13
|\|
| * Rename overly-long utf8data to ud throughout.nicm2015-11-12
| |
* | Merge branch 'obsd-master'Thomas Adam2015-11-12
|\|
| * Add utf8_padcstr and use it to align columns in list-keys.nicm2015-11-12
| |
| * Tidy utf8.c a little: build table on first use, and make utf8_width takenicm2015-11-12
| | | | | | | | a u_int rather than splitting and then combining again in utf8_split.
* | Merge branch 'obsd-master'Thomas Adam2015-11-12
|\|
| * If we know the terminal outside tmux is not UTF-8, replace UTF-8 innicm2015-11-12
| | | | | | | | | | error messages and whatnot with underscores the same as we do when we draw UTF-8 characters as part of the screen.
| * Support UTF-8 key bindings by expanding the key type from int tonicm2015-11-12
| | | | | | | | | | | | uint64_t and converting UTF-8 to Unicode on input and the reverse on output. (This allows key bindings, there are still omissions - the largest being that the various prompts do not accept UTF-8.)
* | Merge branch 'obsd-master'Thomas Adam2015-11-11
|\| | | | | | | | | Conflicts: utf8.c
| * Update the internal wcwidth(3) table of tmux(1) to match the dataschwarze2015-11-05
| | | | | | | | | | | | | | | | | | in /usr/src/share/locale/ctype/en_US.UTF-8.src, with one single exception: Keep U+00AD SOFT HYPHEN at width 1 rather than moving it to width 0, a tradition already observed in the old https://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c . While here, manually rebalance the btree for optimal lookup speed. OK nicm@
* | Merge branch 'obsd-master'Thomas Adam2015-04-22
|\|
| * Style nit - unnecessary brackets.nicm2015-04-20
| |
* | No need for $Id$ now.Nicholas Marriott2014-11-08
| |
* | Merge branch 'obsd-master'Thomas Adam2014-10-21
|\| | | | | | | | | | | | | | | | | | | Conflicts: Makefile cmd-list-commands.c cmd-suspend-client.c job.c tmux.h xmalloc.c
| * Add xreallocarray and remove nmemb argument from xrealloc.nicm2014-10-08
| |
* | Merge branch 'obsd-master'Thomas Adam2014-04-23
|\| | | | | | | | | | | | | Conflicts: Makefile tmux.1 window.c
| * Add some UTF-8 utility functions and use them to prevent the width limitnicm2014-04-17
| | | | | | | | on formats from splitting UTF-8 characters improperly.
| * Some more long lines.nicm2014-04-17
| |
* | Remove <vis.h>; not used on Linux.Thomas Adam2014-04-05
| |
* | Merge branch 'obsd-master'Thomas Adam2014-04-05
|\| | | | | | | | | | | Conflicts: Makefile tty-keys.c
| * Support UTF-8 with choose-buffer, from Kosuke ASAMI. Also makenicm2014-04-02
| | | | | | | | buffer_sample bigger to let it trim at window right edge.
| * In four byte UTF-8 sequences, only three bits of the first byte shouldnicm2014-03-31
| | | | | | | | be used. Fix from Koga Osamu.
* | In four byte UTF-8 sequences, only three bits of the first byte should beNicholas Marriott2014-03-08
| | | | | | | | used. Fix from Koga Osamu.
* | Merge branch 'obsd-master'Thomas Adam2013-04-13
|\| | | | | | | | | Conflicts: tmux.c
| * Remove some Korean characters from the zero-width list that apparentlyNicholas Marriott2013-04-12
| | | | | | | | shouldn't be there, from Jeong Mok Cho.
| * Support for UTF-8 mouse input (\033[1005h). This was added in xterm 262Nicholas Marriott2011-01-03
| | | | | | | | | | | | | | | | | | | | and supports larger terminals than the older way. If the new mouse-utf8 option is on, UTF-8 mouse input is enabled for all UTF-8 terminals. The option defaults to on if LANG etc are set in the same manner as the utf8 option. With help and based on code from hsim at gmx.li.
| * %zu not %u, doh.Nicholas Marriott2009-10-20
| |
| * Try to reduce the UTF-8 mess.Nicholas Marriott2009-10-20
| | | | | | | | | | | | | | | | | | | | | | | | Get rid of passing around u_char[4]s and define a struct utf8_data which has character data, size (sequence length) and width. Move UTF-8 character collection into two functions utf8_open/utf8_append in utf8.c which fill in this struct and use these functions from input.c and the various functions in screen-write.c. Space for rather more data than is necessary for one UTF-8 sequence is in the utf8_data struct because screen_write_copy is still nasty and needs to reinject the character (after combining) into screen_write_cell.
| * Miscellaneous unused functions, including one which was basically aNicholas Marriott2009-06-25
| | | | | | | | duplicate. Found by lint.
| * Constify utf8_width() function argument.Nicholas Marriott2009-06-24
| |
| * Import tmux, a terminal multiplexor allowing (among other things) a singleNicholas Marriott2009-06-01
| | | | | | | terminal to be switched between several different windows and programs displayed on one terminal be detached from one terminal and moved to another. ok deraadt pirofti
* Fix some UTF-8 Japanese issue on OS X, SF bug 3566884.Nicholas Marriott2012-09-24
|
* Expand the Id keyword. Tiago Cunha2011-07-09
|
* Sync OpenBSD patchset 828:Tiago Cunha2011-01-07
| | | | | | | | | | | | Support for UTF-8 mouse input (\033[1005h). This was added in xterm 262 and supports larger terminals than the older way. If the new mouse-utf8 option is on, UTF-8 mouse input is enabled for all UTF-8 terminals. The option defaults to on if LANG etc are set in the same manner as the utf8 option. With help and based on code from hsim at gmx.li.
* Sync OpenBSD patchset 424:Tiago Cunha2009-10-23
| | | | | %zu not %u, doh.
* Sync OpenBSD patchset 421:Tiago Cunha2009-10-23
| | | | | | | | | | | | | | | Try to reduce the UTF-8 mess. Get rid of passing around u_char[4]s and define a struct utf8_data which has character data, size (sequence length) and width. Move UTF-8 character collection into two functions utf8_open/utf8_append in utf8.c which fill in this struct and use these functions from input.c and the various functions in screen-write.c. Space for rather more data than is necessary for one UTF-8 sequence is in the utf8_data struct because screen_write_copy is still nasty and needs to reinject the character (after combining) into screen_write_cell.
* Restore $Id$ and add script to do so.Nicholas Marriott2009-06-25
|
* Miscellaneous unused functions, including one which was basically aNicholas Marriott2009-06-25
| | | | | duplicate. Found by lint.
* Constify utf8_width() function argument.Nicholas Marriott2009-06-25
|
* Space trimmage mega-diff.Nicholas Marriott2009-05-04
|
* Use a (pre)randomised binary tree for UTF-8 character widths. Probably overkillNicholas Marriott2009-04-30
| | | | | but meh.
* Don't screw up UTF-8 combined characters.Nicholas Marriott2009-01-26
|
* Don't use [4] since they are confusing and use the right size for memset. DOH.Nicholas Marriott2009-01-17
|
* Internal screen data rewrite for better 256 colour/UTF-8 support.Nicholas Marriott2008-09-25
|
* Initial UTF-8 support.Nicholas Marriott2008-09-09