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

Function txt_backsp

sys/msdos/vidtxt.c:122–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120extern int monoflag; /* 0 = not monochrome, else monochrome */
121
122void
123txt_backsp(void)
124{
125#ifdef PC9800
126 union REGS regs;
127
128 regs.h.dl = 0x01; /* one column */
129 regs.h.ah = CURSOR_LEFT;
130 regs.h.cl = DIRECT_CON_IO;
131
132 int86(DOS_EXT_FUNC, &regs, &regs);
133
134#else
135 int col, row;
136
137 txt_get_cursor(&col, &row);
138 if (col > 0)
139 col = col - 1;
140 txt_gotoxy(col, row);
141#endif
142}
143
144void
145txt_nhbell(void)

Callers 1

backspFunction · 0.85

Calls 2

txt_get_cursorFunction · 0.85
txt_gotoxyFunction · 0.85

Tested by

no test coverage detected