--- src/options.c.orig	Wed Apr 21 06:08:52 1999
+++ src/options.c	Sun May  2 14:13:26 1999
@@ -162,6 +162,10 @@
 const char *rs_menu = NULL;
 
 #endif
+#ifdef USE_XIM
+char *rs_inputMethod = NULL;
+char *rs_preeditType = NULL;
+#endif
 
 #if defined (HOTKEY_CTRL) || defined (HOTKEY_META)
 static char *rs_bigfont_key = NULL;
@@ -392,6 +396,10 @@
 #if MENUBAR_MAX
       OPT_STR('M', "menu", "Default menubar file", &rs_menu),
 #endif
+#ifdef USE_XIM
+      OPT_LONG("input-method", "value of using input method", &rs_inputMethod),
+      OPT_LONG("preedit-type", "value of input style", &rs_preeditType),
+#endif
       OPT_LONG("term-name", "value to use for setting $TERM", &rs_term_name),
       OPT_BOOL('C', "console", "grab console messages", NULL, &Options, Opt_console),
       OPT_ARGS('e', "exec", "execute a command rather than a shell", &rs_execArgs)
@@ -2567,7 +2575,14 @@
 #else
     print_error("warning:  support for the cut_chars attribute was not compiled in, ignoring");
 #endif
-
+#ifdef USE_XIM
+  } else if (!BEG_STRCASECMP(buff, "input-method ")) {
+    rs_inputMethod = Word(2, buff);
+    chomp(rs_inputMethod);
+  } else if (!BEG_STRCASECMP(buff, "preedit-type ")) {
+    rs_preeditType = Word(2, buff);
+    chomp(rs_preeditType);
+#endif
   } else {
     print_error("parse error in file %s, line %lu:  Attribute \"%s\" is not valid "
 		"within context misc", file_peek_path(), file_peek_line(), buff);
