elna/shell/main.cpp

17 lines
287 B
C++

#include <cstdlib>
#include <unistd.h>
#include "elna/shell/interactive.hpp"
int main()
{
if (!elna::enable_raw_mode())
{
std::perror("tcsetattr");
return EXIT_FAILURE;
}
std::atexit(elna::disable_raw_mode);
elna::loop();
return EXIT_SUCCESS;
}