MCPcopy Create free account
hub / github.com/NetHack/NetHack / clear_tty_window

Function clear_tty_window

outdated/sys/mac/mactty.c:1099–1118  ·  view source on GitHub ↗

* Clear an area */

Source from the content-addressed store, hash-verified

1097 * Clear an area
1098 */
1099short
1100clear_tty_window(WindowPtr window, short from_x, short from_y, short to_x,
1101 short to_y)
1102{
1103 Rect r;
1104 RECORD_EXISTS(record);
1105
1106 if (from_x > to_x || from_y > to_y) {
1107 return general_failure;
1108 }
1109 pos_rect(record, &r, from_x, from_y, to_x, to_y);
1110 select_offscreen_port(record);
1111 erase_rect(record, &r);
1112 accumulate_rect(record, &r);
1113 if (DRAW_DIRECT) {
1114 update_tty(window);
1115 } else
1116 select_onscreen_window(record);
1117 return noErr;
1118}
1119
1120#if EXTENDED_SUPPORT
1121/*

Callers 2

cl_endFunction · 0.85
cl_eosFunction · 0.85

Calls 6

pos_rectFunction · 0.85
select_offscreen_portFunction · 0.85
erase_rectFunction · 0.85
accumulate_rectFunction · 0.85
update_ttyFunction · 0.85
select_onscreen_windowFunction · 0.85

Tested by

no test coverage detected