mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-05-23 11:15:32 +02:00
chore(spelling): add codespell pre-commit hook
Fixes spelling mistakes identified by it.
This commit is contained in:
parent
c9202f847e
commit
4ba9859a18
11 changed files with 20 additions and 15 deletions
|
@ -1,4 +1,4 @@
|
|||
# For convenient building of the library and gdnative export templates targeted at the javacript platform.
|
||||
# For convenient building of the library and gdnative export templates targeted at the javascript platform.
|
||||
FROM emscripten/emsdk:3.1.14
|
||||
RUN apt-get update && apt-get install pkg-config python3 -y
|
||||
RUN pip3 install scons
|
||||
|
|
|
@ -224,7 +224,7 @@ Array PTYUnix::fork(String p_file, int _ignored, PoolStringArray p_args,
|
|||
sigaction(i, &sig_action, NULL);
|
||||
}
|
||||
}
|
||||
// reenable signals
|
||||
// re-enable signals
|
||||
pthread_sigmask(SIG_SETMASK, &oldmask, NULL);
|
||||
|
||||
if (pid) {
|
||||
|
@ -671,4 +671,4 @@ void PTYUnix::_register_methods() {
|
|||
register_method("process", &PTYUnix::process);
|
||||
}
|
||||
|
||||
void PTYUnix::_init() {}
|
||||
void PTYUnix::_init() {}
|
||||
|
|
|
@ -149,7 +149,7 @@ HRESULT CreateNamedPipesAndPseudoConsole(COORD size, DWORD dwFlags,
|
|||
}
|
||||
}
|
||||
|
||||
// Failed to find kernel32. This is realy unlikely - honestly no idea how
|
||||
// Failed to find kernel32. This is really unlikely - honestly no idea how
|
||||
// this is even possible to hit. But if it does happen, fall back to
|
||||
// winpty.
|
||||
return HRESULT_FROM_WIN32(GetLastError());
|
||||
|
@ -180,7 +180,7 @@ static NAN_METHOD(PtyStartProcess) {
|
|||
const bool inheritCursor = Nan::To<bool>(info[5]).FromJust();
|
||||
|
||||
// use environment 'Path' variable to determine location of
|
||||
// the relative path that we have recieved (e.g cmd.exe)
|
||||
// the relative path that we have received (e.g cmd.exe)
|
||||
std::wstring shellpath;
|
||||
if (::PathIsRelativeW(filename.c_str())) {
|
||||
shellpath = path_util::get_shell_path(filename.c_str());
|
||||
|
|
|
@ -147,7 +147,7 @@ static NAN_METHOD(PtyStartProcess) {
|
|||
}
|
||||
|
||||
// use environment 'Path' variable to determine location of
|
||||
// the relative path that we have recieved (e.g cmd.exe)
|
||||
// the relative path that we have received (e.g cmd.exe)
|
||||
std::wstring shellpath;
|
||||
if (::PathIsRelativeW(filename)) {
|
||||
shellpath = path_util::get_shell_path(filename);
|
||||
|
|
|
@ -40,7 +40,7 @@ void Terminal::_populate_key_list() {
|
|||
};
|
||||
#endif
|
||||
|
||||
// Godot does not have seperate scancodes for keypad keys when NumLock is off.
|
||||
// Godot does not have separate scancodes for keypad keys when NumLock is off.
|
||||
// We can check the unicode value to determine whether it is off and set the
|
||||
// appropriate scancode.
|
||||
// Based on the patch which adds support for this to TextEdit/LineEdit:
|
||||
|
@ -401,7 +401,7 @@ void Terminal::update_theme() {
|
|||
Ref<Theme> default_theme;
|
||||
|
||||
/* Load the default theme if it exists and no theme is set */
|
||||
// Don't actually set the theme to default (to allow inheritence of themes),
|
||||
// Don't actually set the theme to default (to allow inheritance of themes),
|
||||
// but do load default values from it.
|
||||
|
||||
const char *default_theme_path =
|
||||
|
|
|
@ -10,7 +10,7 @@ const LibuvUtils := preload("./libuv_utils.gdns")
|
|||
|
||||
|
||||
static func get_os_environ() -> Dictionary:
|
||||
# While Godot has OS.get_environment(), I could see a way to get all environent
|
||||
# While Godot has OS.get_environment(), I could see a way to get all environment
|
||||
# variables, other than by OS.execute() which would require to much platform
|
||||
# specific code. Easier to use libuv's utility function.
|
||||
return LibuvUtils.new().get_os_environ()
|
||||
|
|
|
@ -90,7 +90,7 @@ func _set_terminal(value: _Terminal):
|
|||
if _terminal == value:
|
||||
return
|
||||
|
||||
# Disconect the current terminal, if any.
|
||||
# Disconnect the current terminal, if any.
|
||||
if _terminal:
|
||||
disconnect("data_received", _terminal, "write")
|
||||
_terminal.disconnect("data_sent", self, "write")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue