aboutsummaryrefslogtreecommitdiff
path: root/include/line/mode.h
blob: c0c8acecef69e534cf36cbee211e77ae11c9285c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

#pragma once

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

using namespace std; // TODO: remove

namespace ov4
{

struct T_position
{
    int row;
    int col;
};

inline termios attr;
inline int cursor_row;
inline int cursor_col;

void disable_raw();
void enable_raw();

void clear_below();

std::string readline();

T_position get_cursor_position();

void print_override(const std::string &s);

}