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

Function xputc

sys/windows/consoletty.c:1226–1235  ·  view source on GitHub ↗

xputc_core() and g_putch() are the only routines that actually place output. same signature as 'putchar()' with potential failure result ignored */

Source from the content-addressed store, hash-verified

1224/* xputc_core() and g_putch() are the only routines that actually place output.
1225 same signature as 'putchar()' with potential failure result ignored */
1226int
1227xputc(int ch)
1228{
1229 int x = ttyDisplay->curx, y = ttyDisplay->cury;
1230 if (x < console.width && y < console.height) {
1231 set_console_cursor(ttyDisplay->curx, ttyDisplay->cury);
1232 xputc_core(ch);
1233 }
1234 return 0;
1235}
1236
1237#ifndef VIRTUAL_TERMINAL_SEQUENCES
1238void

Callers

nothing calls this directly

Calls 2

set_console_cursorFunction · 0.85
xputc_coreFunction · 0.85

Tested by

no test coverage detected