diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-09-09 22:16:37 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-09-09 22:16:37 +0000 |
commit | 19a2c87f049155439427e40d0cc78041da4d0b99 (patch) | |
tree | 03d67440bb693b3257850a54007f9b03027d1bdc /screen.c | |
parent | 1e145a639be109f53381c64bd83483d32ffc8524 (diff) | |
download | rtmux-19a2c87f049155439427e40d0cc78041da4d0b99.tar.gz rtmux-19a2c87f049155439427e40d0cc78041da4d0b99.tar.bz2 rtmux-19a2c87f049155439427e40d0cc78041da4d0b99.zip |
Initial UTF-8 support.
Diffstat (limited to 'screen.c')
-rw-r--r-- | screen.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: screen.c,v 1.68 2008-09-08 22:03:54 nicm Exp $ */ +/* $Id: screen.c,v 1.69 2008-09-09 22:16:36 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -155,6 +155,8 @@ screen_create(struct screen *s, u_int dx, u_int dy, u_int hlimit) s->grid_size = xmalloc(dy * (sizeof *s->grid_size)); screen_make_lines(s, 0, dy); + utf8_init(&s->utf8_table, UTF8_LIMIT); + screen_clear_selection(s); } @@ -348,6 +350,7 @@ screen_set_cell(struct screen *s, void screen_destroy(struct screen *s) { + utf8_free(&s->utf8_table); xfree(s->title); screen_free_lines(s, 0, s->dy + s->hsize); xfree(s->grid_data); |