mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-07-04 21:05:30 +02:00
added windows pty support
This commit is contained in:
parent
89f92f9c1e
commit
4c25b2f6a8
23 changed files with 1478 additions and 695 deletions
41
addons/godot_xterm/native/src/pty_win.h
Normal file
41
addons/godot_xterm/native/src/pty_win.h
Normal file
|
@ -0,0 +1,41 @@
|
|||
// 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 PTYWin
|
||||
{
|
||||
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);
|
||||
|
||||
static void resize(
|
||||
int64_t p_hpc,
|
||||
const int &p_cols,
|
||||
const int &p_rows);
|
||||
|
||||
static void close(
|
||||
uint64_t hpc,
|
||||
int fd,
|
||||
int fd_out);
|
||||
};
|
||||
} // namespace godot
|
Loading…
Add table
Add a link
Reference in a new issue