freebsd-ports/japanese/gnomelibs/files/patch-ag
2000-10-30 13:55:28 +00:00

32 lines
938 B
Text

--- ./zvt/vt.h.jp2 Sat Oct 30 03:35:49 1999
+++ ./zvt/vt.h Sun Oct 29 18:32:20 2000
@@ -28,6 +28,10 @@
/* for utf-8 input support */
#define ZVT_UTF 1
+/* for multibyte support */
+#define ZVT_MB 1
+#define ZVT_JIS 1
+
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
@@ -71,6 +75,7 @@
#define VTATTR_BLINK 0x10000000
#define VTATTR_REVERSE 0x08000000
#define VTATTR_CONCEALED 0x04000000
+#define VTATTR_MULTIBYTE 0x80000000 /* for multibyte charater */
/* all attributes mask, and no-attributes mask */
#define VTATTR_MASK 0xffff0000
@@ -207,6 +212,10 @@
int vt_killchild (struct vt_em *vt, int signal);
int vt_closepty (struct vt_em *vt);
void vt_reset_terminal (struct vt_em *vt, int hard);
+#ifdef ZVT_MB
+int vt_line_mblen(int x, struct vt_line *l);
+int vt_query_line_mbchar(int x, struct vt_line *l);
+#endif
#ifdef __cplusplus
}