mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 04:13:32 +02:00
/SET term_type 8bit|utf8|big5 - Removed --with-big5 configure option, it's
now included the same way as utf8, though i'm not sure if it really works but at least it should partially :) Input line is now internally using 32bit chars but it's converted to 8bit chars for external use. Text buffer supports only 8bit + utf8 for now. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2448 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
612c061605
commit
afeb6fcb7d
14 changed files with 502 additions and 168 deletions
|
|
@ -2,7 +2,13 @@
|
|||
#define __GUI_ENTRY_H
|
||||
|
||||
typedef struct {
|
||||
GString *text;
|
||||
int text_len, text_alloc; /* as shorts, not chars */
|
||||
unichar *text;
|
||||
|
||||
int cutbuffer_len;
|
||||
unichar *cutbuffer;
|
||||
|
||||
/* all as shorts, not chars */
|
||||
int xpos, ypos, width; /* entry position in screen */
|
||||
int pos, scrstart, scrpos; /* cursor position */
|
||||
int hidden; /* print the chars as spaces in input line (useful for passwords) */
|
||||
|
|
@ -30,8 +36,9 @@ void gui_entry_set_text(GUI_ENTRY_REC *entry, const char *str);
|
|||
char *gui_entry_get_text(GUI_ENTRY_REC *entry);
|
||||
|
||||
void gui_entry_insert_text(GUI_ENTRY_REC *entry, const char *str);
|
||||
void gui_entry_insert_char(GUI_ENTRY_REC *entry, char chr);
|
||||
void gui_entry_insert_char(GUI_ENTRY_REC *entry, unichar chr);
|
||||
|
||||
char *gui_entry_get_cutbuffer(GUI_ENTRY_REC *entry);
|
||||
void gui_entry_erase(GUI_ENTRY_REC *entry, int size);
|
||||
void gui_entry_erase_word(GUI_ENTRY_REC *entry, int to_space);
|
||||
void gui_entry_erase_next_word(GUI_ENTRY_REC *entry, int to_space);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue