forked from ncgrep/ncgrep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tui.h
22 lines (17 loc) · 888 Bytes
/
tui.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <ncurses.h>
#include <string>
#include <iostream>
#include <vector>
#include "grep.h"
#include "files.h"
#ifndef NCGREP_TUI_WIN_SHOW_NUM
#define NCGREP_TUI_WIN_SHOW_NUM 1
#endif
#define NCGREP_TUI_DO_MOVE_WIN_LINE true
#define NCGREP_TUI_DO_NOT_MOVE_WIN_LINE false
using namespace std;
void refresh_win(WINDOW *win, unsigned long yWin, unsigned long xWin, vector<match_dirs> dirs, long cur_dir_index, vector<match_files> mfv, unsigned long refresh_line, bool do_move_win_line);
void refresh_dirs_win(WINDOW *win, unsigned long yWin, unsigned long xWin, vector<match_dirs> dirs, long cur_dir_index, unsigned long refresh_line, bool do_move_win_line);
void refresh_space_win(WINDOW *win, unsigned long yWin, unsigned long xWin, unsigned long start_line, unsigned long length);
unsigned long get_last_win_cur_line();
void set_last_win_cur_line(unsigned long new_win_cur_line);