aboutsummaryrefslogtreecommitdiff
path: root/include/line/mode.h
blob: be0a453861b7d996aa5d9ba4fef31047ccbcebcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

#pragma once

#include <termios.h>
#include <string>

using namespace std; // TODO: remove

namespace ov4
{

inline termios attr;
inline bool raw_enabled = false;

void disable_raw();
void enable_raw();

void clear_below();

std::string readline();

}