| 166 | #endif |
| 167 | |
| 168 | void |
| 169 | term_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 | |
| 204 | void |
| 205 | backsp(void) |
no test coverage detected