mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-22 01:30:25 +01:00
Deprecate undocumented get_master() method
This method was never officially documented and used only as a workaround for issue #53. It also returns an instance of the undocumented and scruffily implemented Pipe class that I would prefer to keep internal. Now that #53 has been fixed, this method can be removed from the unofficial public API, but deprecate it just in case. If someone was using it then it is still possible (although not supported) to access the `_pipe` property of `_pty_native`.
This commit is contained in:
parent
6cd5facb98
commit
41525959e1
1 changed files with 3 additions and 0 deletions
|
@ -173,6 +173,9 @@ func open(cols: int = DEFAULT_COLS, rows: int = DEFAULT_ROWS) -> Array:
|
|||
|
||||
|
||||
func get_master():
|
||||
push_warning(
|
||||
"The method get_master() is deprecated and will be removed in a future version. If you really need to get the underlying Pipe of the pty, then you can access '_pty_native._pipe', but this is not supported and may change at any time."
|
||||
)
|
||||
return _pty_native.get_master()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue