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

Function term_curs_set

sys/msdos/video.c:168–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166#endif
167
168void
169term_curs_set(int visibility)
170{
171 static int vis = -1;
172
173 if (vis == visibility)
174 return;
175
176 if (!visibility) {
177 if (!iflags.grmode) {
178 txt_hide_cursor();
179#ifdef SCREEN_VGA
180 } else if (iflags.usevga) {
181 vga_hide_cursor();
182#endif
183#ifdef SCREEN_VESA
184 } else if (iflags.usevesa) {
185 vesa_hide_cursor();
186 }
187#endif
188 } else if (visibility) {
189 if (!iflags.grmode) {
190 txt_show_cursor();
191#ifdef SCREEN_VGA
192 } else if (iflags.usevga) {
193 vga_show_cursor();
194#endif
195#ifdef SCREEN_VESA
196 } else if (iflags.usevesa) {
197 vesa_show_cursor();
198 }
199#endif
200 }
201 vis = visibility;
202}
203
204void
205backsp(void)

Callers 1

msexitFunction · 0.50

Calls 6

txt_hide_cursorFunction · 0.85
vga_hide_cursorFunction · 0.85
vesa_hide_cursorFunction · 0.85
txt_show_cursorFunction · 0.85
vga_show_cursorFunction · 0.85
vesa_show_cursorFunction · 0.85

Tested by

no test coverage detected