OSDN Git Service

Brought x11-type-string.c up-to-date with the changes in z-term.h.
authorEric Branlund <ebranlund@fastmail.com>
Sun, 9 Aug 2020 14:47:16 +0000 (07:47 -0700)
committerHourier <hourier@users.sourceforge.jp>
Fri, 14 Aug 2020 14:34:21 +0000 (23:34 +0900)
src/main/x11-type-string.c

index 0c320c8..8558543 100644 (file)
@@ -11,7 +11,7 @@
 /*
  * Add a series of keypresses to the "queue".
  *
- * Return any errors generated by Term_keypress() in doing so, or SUCCESS
+ * Return any errors generated by term_key_push() in doing so, or SUCCESS
  * if there are none.
  *
  * Catch the "out of space" error before anything is printed.
 errr type_string(concptr str, uint len)
 {
     errr err = 0;
-    term *old = Term;
+    term_type *old = Term;
     if (!str)
         return -1;
     if (!len)
         len = strlen(str);
 
-    Term_activate(term_screen);
+    term_activate(term_screen);
     for (concptr s = str; s < str + len; s++) {
         if (*s == '\0')
             break;
 
-        err = Term_keypress(*s);
+        err = term_key_push(*s);
         if (err)
             break;
     }
 
-    Term_activate(old);
+    term_activate(old);
     return err;
 }