forked from enlightenment/terminology
set IUTF8 flag. Closes T656
This commit is contained in:
parent
da8544728b
commit
864fa1e368
|
@ -277,6 +277,7 @@ termpty_new(const char *cmd, Eina_Bool login_shell, const char *cd,
|
||||||
Termpty *ty;
|
Termpty *ty;
|
||||||
const char *pty;
|
const char *pty;
|
||||||
int mode;
|
int mode;
|
||||||
|
struct termios t;
|
||||||
|
|
||||||
ty = calloc(1, sizeof(Termpty));
|
ty = calloc(1, sizeof(Termpty));
|
||||||
if (!ty) return NULL;
|
if (!ty) return NULL;
|
||||||
|
@ -338,22 +339,13 @@ termpty_new(const char *cmd, Eina_Bool login_shell, const char *cd,
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (erase_is_del)
|
|
||||||
{
|
|
||||||
struct termios t;
|
|
||||||
|
|
||||||
tcgetattr(ty->fd, &t);
|
tcgetattr(ty->fd, &t);
|
||||||
t.c_cc[VERASE] = 0x7f;
|
t.c_cc[VERASE] = (erase_is_del) ? 0x7f : 0x8;
|
||||||
tcsetattr(ty->fd, TCSANOW, &t);
|
#ifdef IUTF8
|
||||||
}
|
t.c_iflag |= IUTF8;
|
||||||
else
|
#endif
|
||||||
{
|
tcsetattr(ty->fd, TCSANOW, &t);
|
||||||
struct termios t;
|
|
||||||
|
|
||||||
tcgetattr(ty->fd, &t);
|
|
||||||
t.c_cc[VERASE] = 0x8;
|
|
||||||
tcsetattr(ty->fd, TCSANOW, &t);
|
|
||||||
}
|
|
||||||
|
|
||||||
ty->hand_exe_exit = ecore_event_handler_add(ECORE_EXE_EVENT_DEL,
|
ty->hand_exe_exit = ecore_event_handler_add(ECORE_EXE_EVENT_DEL,
|
||||||
_cb_exe_exit, ty);
|
_cb_exe_exit, ty);
|
||||||
|
|
Loading…
Reference in New Issue