elna/shell/main.cpp

17 lines
287 B
C++
Raw Normal View History

2024-02-22 21:29:25 +01:00
#include <cstdlib>
#include <unistd.h>
2024-03-07 09:15:11 +01:00
#include "elna/shell/interactive.hpp"
2024-02-22 21:29:25 +01:00
int main()
{
if (!elna::enable_raw_mode())
{
std::perror("tcsetattr");
return EXIT_FAILURE;
}
std::atexit(elna::disable_raw_mode);
elna::loop();
return EXIT_SUCCESS;
}