Functions | Variables
CursesHelper.hpp File Reference
#include <ncursesw/ncurses.h>
#include <locale>
#include <iostream>
#include <signal.h>
Include dependency graph for CursesHelper.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static void clear_background ()
 
static void console_print_grayscale (int y, int x, wchar_t sign, float gray)
 
static void console_print_grayscale (int y, int x, wchar_t sign, short gray)
 
static int curses_height ()
 
static void curses_sigint (int sig)
 
static int curses_width ()
 
static void destroy_curses ()
 
static void init_curses (unsigned int num_grayscale)
 
static void init_grayscale (short num_grays)
 
static void init_mouse ()
 
static void set_num_grays (short num_grays)
 

Variables

static short CURSES_CUSTOM_COLORS_SHIFT = 10
 
static short CURSES_NUM_GRAYS = 200
 
static mmask_t MOUSE_MOVE = 134217728
 
static mmask_t MOUSE_SCROLL_UP = 524288
 

Function Documentation

◆ clear_background()

static void clear_background ( )
static

Definition at line 77 of file CursesHelper.hpp.

◆ console_print_grayscale() [1/2]

static void console_print_grayscale ( int  y,
int  x,
wchar_t  sign,
float  gray 
)
static

Definition at line 68 of file CursesHelper.hpp.

◆ console_print_grayscale() [2/2]

static void console_print_grayscale ( int  y,
int  x,
wchar_t  sign,
short  gray 
)
static

Definition at line 55 of file CursesHelper.hpp.

◆ curses_height()

static int curses_height ( )
static

Definition at line 134 of file CursesHelper.hpp.

◆ curses_sigint()

static void curses_sigint ( int  sig)
static

Definition at line 23 of file CursesHelper.hpp.

◆ curses_width()

static int curses_width ( )
static

Definition at line 129 of file CursesHelper.hpp.

◆ destroy_curses()

static void destroy_curses ( )
static

Definition at line 16 of file CursesHelper.hpp.

◆ init_curses()

static void init_curses ( unsigned int  num_grayscale)
static

Definition at line 99 of file CursesHelper.hpp.

◆ init_grayscale()

static void init_grayscale ( short  num_grays)
static

Definition at line 37 of file CursesHelper.hpp.

◆ init_mouse()

static void init_mouse ( )
static

Definition at line 92 of file CursesHelper.hpp.

◆ set_num_grays()

static void set_num_grays ( short  num_grays)
static

Definition at line 32 of file CursesHelper.hpp.

Variable Documentation

◆ CURSES_CUSTOM_COLORS_SHIFT

short CURSES_CUSTOM_COLORS_SHIFT = 10
static

Definition at line 13 of file CursesHelper.hpp.

◆ CURSES_NUM_GRAYS

short CURSES_NUM_GRAYS = 200
static

Definition at line 12 of file CursesHelper.hpp.

◆ MOUSE_MOVE

mmask_t MOUSE_MOVE = 134217728
static

Definition at line 9 of file CursesHelper.hpp.

◆ MOUSE_SCROLL_UP

mmask_t MOUSE_SCROLL_UP = 524288
static

Definition at line 10 of file CursesHelper.hpp.



lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Wed Mar 2 2022 00:37:25