mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-07-04 04:55:30 +02:00
feat(pty): add initial pty node
This commit is contained in:
parent
d223a458cd
commit
1514f42b54
21 changed files with 2819 additions and 71 deletions
33
addons/godot_xterm/native/src/pty_unix.h
Normal file
33
addons/godot_xterm/native/src/pty_unix.h
Normal file
|
@ -0,0 +1,33 @@
|
|||
// SPDX-FileCopyrightText: 2024 Leroy Hopson <godot-xterm@leroy.nix.nz>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <godot_cpp/variant/callable.hpp>
|
||||
#include <godot_cpp/variant/dictionary.hpp>
|
||||
|
||||
namespace godot
|
||||
{
|
||||
class PTYUnix
|
||||
{
|
||||
public:
|
||||
static Dictionary fork(
|
||||
const String &p_file,
|
||||
const PackedStringArray &p_args,
|
||||
const PackedStringArray &p_env,
|
||||
const String &p_cwd,
|
||||
const int &p_cols,
|
||||
const int &p_rows,
|
||||
const int &p_uid,
|
||||
const int &p_gid,
|
||||
const bool &p_utf8,
|
||||
const String &p_helper_path,
|
||||
const Callable &p_on_exit
|
||||
);
|
||||
|
||||
static Dictionary open(
|
||||
const int &p_cols,
|
||||
const int &p_rows
|
||||
);
|
||||
};
|
||||
} // namespace godot
|
Loading…
Add table
Add a link
Reference in a new issue