aboutsummaryrefslogtreecommitdiff
path: root/module-test/line_test.cc
blob: d71d08841481c0a6499eb3538c84f43d954c94bb (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

/*
 * test line editor
   $ g++ \
   module-test/line_test.cc \
   src/line/mode.cc \
   -std=c++26 -Iinclude -Ithird_party/magic_enum/include \
   -O0 -ggdb3 -fno-omit-frame-pointer -fno-inline -D_GLIBCXX_ASSERTIONS \
   -o module-test/line_test.out
 *
 */


#include <iostream>
#include <print>
#include <unistd.h>

#include "line/mode.h"

using namespace std;
using namespace ov4;

int main()
{
    enable_raw();
    string s = readline();
    disable_raw();
    cout << s << endl;
    return 0;
}