struct term_data
{
- term t;
+ term_type t;
WINDOW *win;
};
nl();
/* Hack -- make sure the cursor is visible */
- Term_xtra(TERM_XTRA_SHAPE, 1);
+ term_xtra(TERM_XTRA_SHAPE, 1);
/* Flush the curses buffer */
(void)refresh();
/*
* Init the "curses" system
*/
-static void Term_init_gcu(term *t)
+static void Term_init_gcu(term_type *t)
{
term_data *td = (term_data *)(t->data);
/*
* Nuke the "curses" system
*/
-static void Term_nuke_gcu(term *t)
+static void Term_nuke_gcu(term_type *t)
{
term_data *td = (term_data *)(t->data);
if (--active != 0) return;
/* Hack -- make sure the cursor is visible */
- Term_xtra(TERM_XTRA_SHAPE, 1);
+ term_xtra(TERM_XTRA_SHAPE, 1);
#ifdef A_COLOR
/* Reset colors to defaults */
}
/* Enqueue the keypress */
- Term_keypress(i);
+ term_key_push(i);
/* Success */
return (0);
if ((i != 1) || (!buf[0])) return (1);
/* Enqueue the keypress */
- Term_keypress(buf[0]);
+ term_key_push(buf[0]);
/* Success */
return (0);
static errr term_data_init(term_data *td, int rows, int cols, int y, int x)
{
- term *t = &td->t;
+ term_type *t = &td->t;
/* Make sure the window has a positive size */
if (rows <= 0 || cols <= 0) return (0);
t->data = td;
/* Activate it */
- Term_activate(t);
+ term_activate(t);
/* Success */
}
/* Activate the "Angband" window screen */
- Term_activate(&data[0].t);
+ term_activate(&data[0].t);
/* Store */
term_screen = &data[0].t;