blob: 80f9ef9b0cc9aa66f48e9a86330c1fd003a05c16 (
plain)
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
28
29
30
31
|
#pragma once
#include <vector>
#include "buffer.h"
#include "command.h"
#include "global.h"
#include "maybe.h"
using namespace std;
class Manager{
vector<Buffer*> buffers;
i64 activeIdx;
bool should_quit=false;
bool have_screen=false;
Maybe<string> promptString(const string &promptString);
char promptChar(const string &promptString,const string &options,char def);
public:
Manager();
~Manager();
void receive(const Command &cmd);
void show();
int io();
};
|