Refactor Init method across all frontends to include argc and argv for improved argument handling consistency.

This commit is contained in:
2026-01-12 10:35:24 -08:00
parent 6eb240a0c4
commit 8634eb78f0
10 changed files with 21 additions and 17 deletions

View File

@@ -8,8 +8,10 @@
bool
TerminalFrontend::Init(Editor &ed)
TerminalFrontend::Init(int &argc, char **argv, Editor &ed)
{
(void) argc;
(void) argv;
// Ensure Control keys reach the app: disable XON/XOFF and dsusp/susp bindings (e.g., ^S/^Q, ^Y on macOS)
{
struct termios tio{};
@@ -121,4 +123,4 @@ TerminalFrontend::Shutdown()
have_old_sigint_ = false;
}
endwin();
}
}