diff options
author | Tobias Kortkamp <tobik@FreeBSD.org> | 2018-10-04 07:30:36 +0000 |
---|---|---|
committer | Tobias Kortkamp <tobik@FreeBSD.org> | 2018-10-04 07:30:36 +0000 |
commit | bf85617e4b2f64e44e7cb1071bc70c6e25cb87c7 (patch) | |
tree | b0e40aec17127b98e79b7de08a730046fa2cfa4b /audio/cava/files/patch-output_terminal__ncurses.c | |
parent | New port: math/adol-c: Automatic differentiation library (diff) |
audio/cava: Add vt(4) font
On Linux Cava loads a custom font to display blocks with varying
heights and widths on the Linux console. Provide support for it
on FreeBSD with vt(4) too.
Notes
Notes:
svn path=/head/; revision=481208
Diffstat (limited to 'audio/cava/files/patch-output_terminal__ncurses.c')
-rw-r--r-- | audio/cava/files/patch-output_terminal__ncurses.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/audio/cava/files/patch-output_terminal__ncurses.c b/audio/cava/files/patch-output_terminal__ncurses.c new file mode 100644 index 000000000000..ec8c54a06375 --- /dev/null +++ b/audio/cava/files/patch-output_terminal__ncurses.c @@ -0,0 +1,16 @@ +--- output/terminal_ncurses.c.orig 2018-10-04 05:56:00 UTC ++++ output/terminal_ncurses.c +@@ -215,9 +215,13 @@ int flastd[200], int gradient) { + // 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"); ++#endif + /*for(int i = 0; i < gradient_size; ++i) { + if(the_color_redefinitions[i].color) { + init_color(the_color_redefinitions[i].color, |