|
|
1.1 root 1: //
2: // nono
1.1.1.2 ! root 3: // Copyright (C) 2020 nono project
! 4: // Licensed under nono-license.txt
1.1 root 5: //
6:
7: #include "header.h"
8: #include "console.h"
9:
10: //
11: // 標準入出力コンソール
12: //
13:
14: // コンストラクタ
15: ConsoleStdio::ConsoleStdio()
16: {
17: #if defined(HAVE_HISTEDIT_H)
18: // editline があれば使う
19: use_editline = true;
20: #endif
21: }
22:
23: // デストラクタ
24: ConsoleStdio::~ConsoleStdio()
25: {
26: }
27:
28: // 初期化
29: bool
30: ConsoleStdio::Init()
31: {
32: // stdin,out 相当なので開きっぱなしにする
33: if (inp.fd == -1) {
34: inp.fd = STDIN_FILENO;
35: out.fd = STDOUT_FILENO;
36: FDOpen();
37: }
38: return true;
39: }
40:
1.1.1.2 ! root 41: // 受け付ける
! 42: bool
! 43: ConsoleStdio::Accept()
! 44: {
! 45: // 何もしなくていい
! 46: return true;
! 47: }
! 48:
1.1 root 49: void
50: ConsoleStdio::Close()
51: {
52: // stdin,out 相当なので開きっぱなしにする
53: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.