tui: make termkey use utf-8 mode when &encoding=utf-8 #2469

This commit is contained in:
Björn Linse
2015-05-09 22:23:54 +02:00
parent de589e72e6
commit 80d61fb87b
5 changed files with 26 additions and 14 deletions

View File

@@ -113,6 +113,11 @@ void ui_set_icon(char *icon)
UI_CALL(flush);
}
void ui_update_encoding(void)
{
UI_CALL(set_encoding, (char*)p_enc);
}
// May update the shape of the cursor.
void ui_cursor_shape(void)
{
@@ -183,6 +188,7 @@ void ui_attach(UI *ui)
}
uis[ui_count++] = ui;
ui_update_encoding();
ui_refresh();
}