summaryrefslogtreecommitdiff
path: root/manager.h
blob: 55dfc96bfbc30b5f6294c1786d00a0259be51a1a (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
#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> runPrompt(const string &promptString);

public:
	Manager();

	void receive(const Command &cmd);
	void show();

	int io();
};