summaryrefslogtreecommitdiff
path: root/main.cpp
blob: f637804406483a0a85c1aa3b699fd1f90e4cb12f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <exception>
#include <termio.h>

#include "manager.h"

using namespace std;


int main(int argc,char **argv){
	set_terminate([](){
		__asm("int3\n\t");
	});

	freopen("editor.log","w",stderr);
	setvbuf(stderr,nullptr,_IONBF,0);

	installCLhandler(true);
	Manager manager;
	for(int i=1;i<argc;i++){
		manager.receive({"open_file",argv[i]});
	}
	return manager.io();
}