/*
* 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;
}