mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-09-20 16:36:19 +02:00
32 lines
862 B
C++
32 lines
862 B
C++
|
// Copyright (c) 2021, Leroy Hopson (MIT License).
|
||
|
|
||
|
#ifndef GODOT_XTERM_PTY_H
|
||
|
#define GODOT_XTERM_PTY_H
|
||
|
|
||
|
#include <FuncRef.hpp>
|
||
|
#include <Godot.hpp>
|
||
|
|
||
|
namespace godot {
|
||
|
|
||
|
class PTYUnix : public Reference {
|
||
|
GODOT_CLASS(PTYUnix, Reference)
|
||
|
|
||
|
public:
|
||
|
Array fork(String file,
|
||
|
int _ignored, /* FIXME: For some reason Pipe throws
|
||
|
ENOTSOCK in read callback if args (or another non-empty,
|
||
|
non-zero) value is in this position. */
|
||
|
PoolStringArray args, PoolStringArray env, String cwd, int cols,
|
||
|
int rows, int uid, int gid, bool utf8, Ref<FuncRef> on_exit);
|
||
|
Array open(int cols, int rows);
|
||
|
godot_error resize(int fd, int cols, int rows);
|
||
|
String process(int fd, String tty);
|
||
|
|
||
|
void _init();
|
||
|
static void _register_methods();
|
||
|
};
|
||
|
|
||
|
} // namespace godot
|
||
|
|
||
|
#endif // GODOT_XTERM_PTY_H
|