Commit ddad9e00 authored by Nalin Dahyabhai's avatar Nalin Dahyabhai

treat the "big5hkscs" encoding as an East Asian encoding, which uses

* src/iso2022.c: treat the "big5hkscs" encoding as an East Asian encoding,
	which uses ambiguous widths (#116078).  Report and patch from Roger So.
* src/dumpkeys.c, src/iso2022.c, src/iso8859mode.c, src/nativeecho.c,
	src/utf8echo.c, src/utf8mode.c, src/vte.c: don't use the literal escape
	character, express it as an octal sequence.
parent 668ee92b
2003-06-27 nalin
* src/iso2022.c: treat the "big5hkscs" encoding as an East Asian
encoding, which uses ambiguous widths (#116078). Report and patch
from Roger So.
* src/dumpkeys.c, src/iso2022.c, src/iso8859mode.c, src/nativeecho.c,
src/utf8echo.c, src/utf8mode.c, src/vte.c: don't use the literal escape
character, express it as an octal sequence.
2003-06-16 nalin
* src/caps.c: add vertical-tab and form-feed to the list of control
sequences.
......
......@@ -33,7 +33,7 @@
#include <unistd.h>
#include <glib.h>
#define ESC ""
#define ESC "\033"
#define MODE_APPLICATION_KEYPAD ESC "="
#define MODE_NORMAL_KEYPAD ESC ">"
#define MODE_APPLICATION_CURSOR_KEYS 1
......
......@@ -365,6 +365,7 @@ _vte_iso2022_ambiguous_width(struct _vte_iso2022_state *state)
{
const char *wide_codelist[] = {
"big5",
"big5hkscs",
"euccn",
"eucjp",
"euckr",
......
......@@ -19,7 +19,7 @@
#ident "$Id$"
#include "../config.h"
#include <stdio.h>
#define ESC ""
#define ESC "\033"
int
main(int argc, char **argv)
......
......@@ -24,7 +24,7 @@
#include <string.h>
#include <unistd.h>
#include "table.h"
#define ESC ""
#define ESC "\033"
int
main(int argc, char **argv)
......
......@@ -26,7 +26,7 @@
#include <unistd.h>
#include "matcher.h"
#include "vteconv.h"
#define ESC ""
#define ESC "\033"
int
main(int argc, char **argv)
......
......@@ -19,7 +19,7 @@
#ident "$Id$"
#include "../config.h"
#include <stdio.h>
#define ESC ""
#define ESC "\033"
int
main(int argc, char **argv)
......
......@@ -4180,7 +4180,7 @@ vte_sequence_handler_send_secondary_device_attributes(VteTerminal *terminal,
}
g_strfreev(version);
}
ret = g_strdup_printf("[>1;%ld;0c", ver);
ret = g_strdup_printf(_VTE_CAP_ESC "[>1;%ld;0c", ver);
vte_terminal_feed_child(terminal, ret, -1);
g_free(ret);
}
......@@ -8019,11 +8019,11 @@ vte_terminal_key_press(GtkWidget *widget, GdkEventKey *event)
case GDK_Delete:
switch (terminal->pvt->delete_binding) {
case VTE_ERASE_ASCII_BACKSPACE:
normal = g_strdup("");
normal = g_strdup("\010");
normal_length = 1;
break;
case VTE_ERASE_ASCII_DELETE:
normal = g_strdup("");
normal = g_strdup("\177");
normal_length = 1;
break;
case VTE_ERASE_DELETE_SEQUENCE:
......@@ -8167,7 +8167,9 @@ vte_terminal_key_press(GtkWidget *widget, GdkEventKey *event)
!suppress_meta_esc &&
(normal_length > 0) &&
(terminal->pvt->modifiers & VTE_META_MASK)) {
vte_terminal_feed_child(terminal, "", 1);
vte_terminal_feed_child(terminal,
_VTE_CAP_ESC,
1);
}
if (normal_length > 0) {
vte_terminal_feed_child_using_modes(terminal,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment