#! /bin/sh -e

# DP: Modified

if [ $# -ne 1 ]; then
    echo >&2 "$0: script expects -patch|-unpatch as argument"
    exit 1
fi
case "$1" in
    -patch) patch -f -p0 < $0;;
    -unpatch) patch -f -R -p0 < $0;;
    *)
        echo >&2 "$0: script expects -patch|-unpatch as argument"
        exit 1
esac
exit 0

--- zvt/zvtterm.h.orig	Sun Dec 23 15:42:46 2001
+++ zvt/zvtterm.h	Sun Dec 23 15:46:00 2001
@@ -38,6 +38,11 @@
 #define ZVT_TERM_CLASS(klass)  GTK_CHECK_CLASS_CAST (klass, zvt_term_get_type (), ZvtTermClass)
 #define ZVT_IS_TERM(obj)       GTK_CHECK_TYPE (obj, zvt_term_get_type ())
 	
+#define ZVT_GTK_TOPWGT(t) gtk_widget_get_toplevel(GTK_WIDGET(t))    
+#define ZVT_GTK_WINDOW(t) GTK_WINDOW(ZVT_GTK_TOPWGT(t))
+#define ZVT_GDK_WINDOW(t) GTK_WIDGET(t)->window    
+#define ZVT_GDK_TOPWIN(t) gtk_widget_get_toplevel(GTK_WIDGET(t))->window
+
   /* Capabilities
 
      NOTE: These are added at different stages of development always
@@ -97,6 +102,7 @@
   GdkColorContext *color_ctx;	/* Color context in use, where we allocate our colors */
   gulong colors [18];		/* Our colors, pixel values. */
   GdkIC *ic;			/* input context */
+  guint meta_modifiers;         /* what modifiers are handled as meta */
 
  /* file name of a pixmap, if NULL, none is loaded
   * and normal mode is used
@@ -126,6 +132,7 @@
   unsigned int shaded:1;	      /* transparent background with shade */
   unsigned int swap_del_key:1;        /* swap the del and backspace keys */
   unsigned int del_is_del:1;          /* Delete generates DEL/BS instead of Esc[3~ */
+  unsigned int meta_use_hight_bit:1;  /* Generates hi-bit-set characters instead of Esc */
 };
 
 struct _ZvtTermClass
@@ -220,6 +227,8 @@
 void         zvt_term_set_default_color_scheme (ZvtTerm *term);
 void         zvt_term_set_del_key_swap         (ZvtTerm *term, int state);
 void         zvt_term_set_del_is_del           (ZvtTerm *term, int state);
+void         zvt_term_set_meta_use_high_bit    (ZvtTerm *term, int state);
+void         zvt_term_set_meta_modifiers       (ZvtTerm *term, guint modifiers);
 void	     zvt_term_set_wordclass	       (ZvtTerm *term, unsigned char *klass);
 
 /* regular expression matching - automagically! */
