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

Function settty

outdated/sys/mac/mttymain.c:556–573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

554}
555
556void
557settty(const char *str)
558{
559 long flag;
560
561 update_tty(_mt_window);
562
563 /* Buffered output for the game, raw in "raw" mode */
564 get_tty_attrib(_mt_window, TTY_ATTRIB_FLAGS, &flag);
565 flag &= ~TA_INHIBIT_VERT_SCROLL; /* scroll */
566 flag |= TA_ALWAYS_REFRESH;
567 set_tty_attrib(_mt_window, TTY_ATTRIB_FLAGS, flag);
568
569 tty_raw_print("\n");
570 if (str) {
571 tty_raw_print(str);
572 }
573}
574
575void
576tty_number_pad(int arg)

Callers

nothing calls this directly

Calls 4

update_ttyFunction · 0.85
get_tty_attribFunction · 0.85
set_tty_attribFunction · 0.85
tty_raw_printFunction · 0.85

Tested by

no test coverage detected