mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 14:15:24 +00:00
feat(ssh-terminal): add host setting to turn off password prompt auto-fill
This commit is contained in:
1 parent
f0d720cf05
commit
c5b2b880b6
8 files changed
+31
No files matched your search
@@ -1262,6 +1262,8 @@ const TerminalInner = forwardRef<TerminalHandle, SSHTerminalProps>(
|
||||
}
|
||||
|
||||
function maybeOfferPasswordFill(strippedData: string) {
|
||||
if (hostConfig.terminalConfig?.passwordPromptAutoFill === false) return;
|
||||
|
||||
// PTY output can split a short prompt like "[sudo] password for user: "
|
||||
// across multiple WebSocket chunks, so match against a rolling buffer
|
||||
// of recent output rather than each chunk in isolation.
|
||||
|
||||
@@ -28,6 +28,7 @@ export interface TerminalConfig {
|
||||
startupSnippetId: number | null;
|
||||
autoMosh: boolean;
|
||||
moshCommand: string;
|
||||
passwordPromptAutoFill?: boolean;
|
||||
sudoPasswordAutoFill: boolean;
|
||||
sudoPassword?: string | null;
|
||||
keepaliveInterval?: number;
|
||||
|
||||
Reference in new issue
Block a user