-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathncursesUtils.h
More file actions
27 lines (19 loc) · 801 Bytes
/
ncursesUtils.h
File metadata and controls
27 lines (19 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef NCURSESUTILS_H
#define NCURSESUTILS_H
//Window size
#define DEFAULT_WINDOW_HEIGHT 28
#define DEFAULT_WINDOW_WIDTH 42
// Ncurses init function
void initCurses();
// Creates ncurses window for main program grid
// Returns window as an ncurses window pointer
WINDOW *createWindow(int height, int width, int starty, int startx);
// Prints measure markers at top of terminal
void printMeasureMarkers(int currMeasure, int windowWidth);
// Prints file information
void printSamples(audioFile *files, char *fileNames[], int highlightIndex, int numFiles, int windowHeight);
// Prints an error on a file when stuff goes whack
void sampleError(char* fileName, int windowHeight);
// Clears sample errors off the screen (used when playing the file again)
void clearErrors(int windowHeight);
#endif