mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-22 09:40:25 +01:00
chore(style): change indentation
This commit is contained in:
parent
39b5614f61
commit
80ae0020da
1 changed files with 12 additions and 16 deletions
|
@ -205,13 +205,11 @@ void PTY::_notification(int p_what) {
|
||||||
|
|
||||||
void PTY::_run(uv_run_mode mode) {
|
void PTY::_run(uv_run_mode mode) {
|
||||||
#if defined(__linux__) || defined(__APPLE__)
|
#if defined(__linux__) || defined(__APPLE__)
|
||||||
if (status == STATUS_CONNECTED) {
|
|
||||||
if (!uv_is_active((uv_handle_t *)&pipe)) {
|
if (!uv_is_active((uv_handle_t *)&pipe)) {
|
||||||
uv_read_start((uv_stream_t *)&pipe, _alloc_buffer, _read_cb);
|
uv_read_start((uv_stream_t *)&pipe, _alloc_buffer, _read_cb);
|
||||||
}
|
}
|
||||||
|
|
||||||
uv_run(uv_default_loop(), mode);
|
uv_run(uv_default_loop(), mode);
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -244,15 +242,13 @@ String PTY::_get_fork_file(const String &file) const {
|
||||||
|
|
||||||
#if defined(__linux__)
|
#if defined(__linux__)
|
||||||
return "sh";
|
return "sh";
|
||||||
#endif
|
#elif defined(__APPLE__)
|
||||||
#if defined(__APPLE__)
|
|
||||||
return "zsh";
|
return "zsh";
|
||||||
#endif
|
#elif defined(_WIN32)
|
||||||
#if defined(_WIN32)
|
|
||||||
return "cmd.exe";
|
return "cmd.exe";
|
||||||
#endif
|
#else
|
||||||
|
|
||||||
return "";
|
return "";
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
Dictionary PTY::_get_fork_env() const {
|
Dictionary PTY::_get_fork_env() const {
|
||||||
|
|
Loading…
Reference in a new issue