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

#pragma once

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

#include "line/type.h"

namespace ov4
{

inline termios attr;
inline bool raw_enabled = false;

void disable_raw();
void enable_raw();

void clear_below();

std::string readline();

void editor_exit(int code);

}