From ded2ced89bcfe53b7aa3726459c6458d15c31362 Mon Sep 17 00:00:00 2001 From: Leroy Hopson Date: Sat, 30 Apr 2022 18:31:24 +0700 Subject: [PATCH] Register pipe.close() method --- CHANGELOG.md | 3 +++ addons/godot_xterm/native/src/pipe.cpp | 1 + 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 185c959..e0aa06b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed +- Registered `pipe.close()` method, so `kill()` can be called when using unix PTY node. + ## [v2.0.0] - 2021-07-25 ### Added diff --git a/addons/godot_xterm/native/src/pipe.cpp b/addons/godot_xterm/native/src/pipe.cpp index 89e36b4..164f7b8 100644 --- a/addons/godot_xterm/native/src/pipe.cpp +++ b/addons/godot_xterm/native/src/pipe.cpp @@ -25,6 +25,7 @@ void Pipe::_register_methods() { register_method("poll", &Pipe::_poll_connection); register_method("open", &Pipe::open); register_method("write", &Pipe::write); + register_method("close", &Pipe::close); register_signal("data_received", "data", GODOT_VARIANT_TYPE_POOL_BYTE_ARRAY);