summaryrefslogtreecommitdiff
path: root/manager.h
blob: 72fd2d345a19545e3cb28538d801e187f35737aa (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
#pragma once

#include <vector>

#include "buffer.h"
#include "command.h"
#include "global.h"

using namespace std;


class Manager{
	vector<Buffer> buffers;
	i64 activeIdx;
	bool should_quit=false;

	void runPrompt();

public:
	Manager();

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

	int io();
};