Skip to content

Commit

Permalink
use noncurses by default
Browse files Browse the repository at this point in the history
Uses less resources and is less prone to tearing (vsync issues) than 'ncurses'
  • Loading branch information
karlstav committed Nov 26, 2023
1 parent 638fefe commit a95614b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
5 changes: 0 additions & 5 deletions config.c
Original file line number Diff line number Diff line change
Expand Up @@ -580,12 +580,7 @@ bool load_config(char configPath[PATH_MAX], struct config_params *p, bool colors
}
#ifndef _MSC_VER

#ifdef NCURSES
outputMethod = strdup(iniparser_getstring(ini, "output:method", "ncurses"));
#endif
#ifndef NCURSES
outputMethod = strdup(iniparser_getstring(ini, "output:method", "noncurses"));
#endif

orientation = strdup(iniparser_getstring(ini, "output:orientation", "bottom"));
xaxisScale = strdup(iniparser_getstring(ini, "output:xaxis", "none"));
Expand Down
7 changes: 4 additions & 3 deletions example_files/config
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@

# Output method. Can be 'ncurses', 'noncurses', 'raw', 'noritake', 'sdl'
# or 'sdl_glsl'.
# 'noncurses' uses a custom framebuffer technique and prints only changes
# from frame to frame in the terminal. 'ncurses' is default if supported.
# 'noncurses' (default) uses a buffer and cursor movements to only print
# changes from frame to frame in the terminal. Uses less resources and is less
# prone to tearing (vsync issues) than 'ncurses'.
#
# 'raw' is an 8 or 16 bit (configurable via the 'bit_format' option) data
# stream of the bar heights that can be used to send to other applications.
Expand All @@ -107,7 +108,7 @@
# 'sdl' uses the Simple DirectMedia Layer to render in a graphical context.
# 'sdl_glsl' uses SDL to create an OpenGL context. Write your own shaders or
# use one of the predefined ones.
; method = ncurses
; method = noncurses

# Orientation of the visualization. Can be 'bottom', 'top', 'left' or 'right'.
# Default is 'bottom'. Other orientations are only supported on sdl and ncruses
Expand Down

0 comments on commit a95614b

Please sign in to comment.