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

Function get_tty_attrib

outdated/sys/mac/mactty.c:931–942  ·  view source on GitHub ↗

* Read or change attributes for the tty. Note that some attribs may * very well clear and reallocate the bitmap when changed, whereas * others (color, highlight, ...) are guaranteed not to. */

Source from the content-addressed store, hash-verified

929 * others (color, highlight, ...) are guaranteed not to.
930 */
931short
932get_tty_attrib(WindowPtr window, tty_attrib attrib, long *value)
933{
934 RECORD_EXISTS(record);
935
936 if (attrib < 0 || attrib >= TTY_NUMBER_ATTRIBUTES) {
937 return general_failure;
938 }
939 *value = record->attribute[attrib];
940
941 return noErr;
942}
943
944short
945set_tty_attrib(WindowPtr window, tty_attrib attrib, long value)

Callers 3

_mt_init_stuffFunction · 0.85
setfttyFunction · 0.85
setttyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected