diff options
author | Timo Sirainen <cras@irssi.org> | 2002-01-29 01:33:41 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-01-29 01:33:41 +0000 |
commit | 46b318b83127e638c2bbc49f0d84e9468e064d16 (patch) | |
tree | a63375f844ed728d32b3f376ad8ae61f913f71c1 /src/fe-text/textbuffer-view.h | |
parent | 0cdc8a7f6aa0ef29ce38cb2bc046542b72c8c540 (diff) | |
download | irssi-46b318b83127e638c2bbc49f0d84e9468e064d16.zip |
Preliminary support for UTF8 with /SET term_utf8 ON. Input line is still
messed up, but lines should wrap properly in text buffer.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2354 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/textbuffer-view.h')
-rw-r--r-- | src/fe-text/textbuffer-view.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fe-text/textbuffer-view.h b/src/fe-text/textbuffer-view.h index eb0d39c6..b529ebed 100644 --- a/src/fe-text/textbuffer-view.h +++ b/src/fe-text/textbuffer-view.h @@ -11,7 +11,7 @@ typedef int (*INDENT_FUNC) (TEXT_BUFFER_VIEW_REC *view, LINE_REC *line, int ypos); typedef struct { - unsigned char *start; + const unsigned char *start; int indent; INDENT_FUNC indent_func; int color; @@ -55,6 +55,7 @@ struct _TEXT_BUFFER_VIEW_REC { INDENT_FUNC default_indent_func; unsigned int longword_noindent:1; unsigned int scroll:1; /* scroll down automatically when at bottom */ + unsigned int utf8:1; /* use UTF8 in this view */ TEXT_BUFFER_CACHE_REC *cache; int ypos; /* cursor position - visible area is 0..height-1 */ @@ -84,7 +85,7 @@ struct _TEXT_BUFFER_VIEW_REC { /* Create new view. */ TEXT_BUFFER_VIEW_REC *textbuffer_view_create(TEXT_BUFFER_REC *buffer, int width, int height, - int scroll); + int scroll, int utf8); /* Destroy the view. */ void textbuffer_view_destroy(TEXT_BUFFER_VIEW_REC *view); /* Change the default indent position */ @@ -95,6 +96,7 @@ void textbuffer_view_set_default_indent(TEXT_BUFFER_VIEW_REC *view, void textbuffer_views_unregister_indent_func(INDENT_FUNC indent_func); void textbuffer_view_set_scroll(TEXT_BUFFER_VIEW_REC *view, int scroll); +void textbuffer_view_set_utf8(TEXT_BUFFER_VIEW_REC *view, int utf8); /* Resize the view. */ void textbuffer_view_resize(TEXT_BUFFER_VIEW_REC *view, int width, int height); |