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

Function clear_tty

outdated/sys/mac/mactty.c:1039–1051  ·  view source on GitHub ↗

* Clear the screen. Immediate. */

Source from the content-addressed store, hash-verified

1037 * Clear the screen. Immediate.
1038 */
1039short
1040clear_tty(WindowPtr window)
1041{
1042 RECORD_EXISTS(record);
1043
1044 record->curs_state = 0;
1045 select_offscreen_port(record);
1046 erase_rect(record, &(record->its_bits.bounds));
1047 accumulate_rect(record, &(record->its_bits.bounds));
1048 update_tty(window);
1049
1050 return noErr;
1051}
1052
1053/*
1054 * Blink cursor on window if necessary

Callers 3

_mt_init_stuffFunction · 0.85
clear_screenFunction · 0.85

Calls 4

select_offscreen_portFunction · 0.85
erase_rectFunction · 0.85
accumulate_rectFunction · 0.85
update_ttyFunction · 0.85

Tested by

no test coverage detected