mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-14 22:30:26 +01:00
Register pipe.close() method
This commit is contained in:
parent
42c9f284be
commit
ded2ced89b
2 changed files with 4 additions and 0 deletions
|
@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Registered `pipe.close()` method, so `kill()` can be called when using unix PTY node.
|
||||||
|
|
||||||
|
|
||||||
## [v2.0.0] - 2021-07-25
|
## [v2.0.0] - 2021-07-25
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -25,6 +25,7 @@ void Pipe::_register_methods() {
|
||||||
register_method("poll", &Pipe::_poll_connection);
|
register_method("poll", &Pipe::_poll_connection);
|
||||||
register_method("open", &Pipe::open);
|
register_method("open", &Pipe::open);
|
||||||
register_method("write", &Pipe::write);
|
register_method("write", &Pipe::write);
|
||||||
|
register_method("close", &Pipe::close);
|
||||||
|
|
||||||
register_signal<Pipe>("data_received", "data",
|
register_signal<Pipe>("data_received", "data",
|
||||||
GODOT_VARIANT_TYPE_POOL_BYTE_ARRAY);
|
GODOT_VARIANT_TYPE_POOL_BYTE_ARRAY);
|
||||||
|
|
Loading…
Reference in a new issue