blob: c6a1e8fb503dbd8e40cf6e6bbe194e1154d60cde (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--- output/terminal_ncurses.c.orig 2020-10-29 12:36:59 UTC
+++ output/terminal_ncurses.c
@@ -267,9 +267,13 @@ int draw_terminal_ncurses(int is_tty, int terminal_hei
// general: cleanup
void cleanup_terminal_ncurses(void) {
echo();
+#ifdef __FreeBSD__
+ system("/usr/sbin/vidcontrol -f >/dev/null 2>&1");
+#else
system("setfont >/dev/null 2>&1");
system("setfont /usr/share/consolefonts/Lat2-Fixed16.psf.gz >/dev/null 2>&1");
system("setterm -blank 10 >/dev/null 2>&1");
+#endif
/*for(int i = 0; i < gradient_size; ++i) {
if(the_color_redefinitions[i].color) {
init_color(the_color_redefinitions[i].color,
|