// arguments: // 1. RowTerm // 2. WINDOW // 3. int start_row // 3. int start_col static int lua_RoteTerm_draw(lua_State* L) { RoteTerm* rt = lua_RoteTerm_self(L, 1); WINDOW* win = lua_getWindow(L, 2); int start_row = luaL_checkinteger(L, 3); int start_col = luaL_checkinteger(L, 4); rote_vt_draw(rt, win, start_row, start_col, NULL); return 0; }
void machmgr_draw_vt(WINDOW *w) { werase(w); if (selmach >= 0 && selmach < machcount) rote_vt_draw(machs[selmach]->vt, w, 0, 0, NULL); }