mirror of
https://git.freebsd.org/ports.git
synced 2025-06-18 11:10:32 -04:00
Update from 0.7.1 to 0.7.3 brings several improvements and bug fixes[1][2]. More important ones are: - Fix install on macos - ncurses mode is now default again - Improved portaudio audio input - Added Hann windowing and proper ring buffer [1] https://github.com/karlstav/cava/releases/tag/0.7.3 [2] https://github.com/karlstav/cava/releases/tag/0.7.2 PR: 250862 Submitted by: Adam Jimerson <vendion@gmail.com> (takes maintainership) Approved by: arrowd (mentor) Differential Revision: https://reviews.freebsd.org/D27091
16 lines
672 B
C
16 lines
672 B
C
--- 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,
|