feat: support windows clipboard shortcuts (#941)

Fixes #902
This commit is contained in:
lollipopkit🏳️‍⚧️
2025-10-20 00:56:33 +08:00
committed by GitHub
parent 03720fa322
commit 8cbb48ed67
3 changed files with 7 additions and 3 deletions

View File

@@ -96,6 +96,8 @@ Future<SSHClient> genClient(
username: alterUser ?? spi.user, username: alterUser ?? spi.user,
onPasswordRequest: () => spi.pwd, onPasswordRequest: () => spi.pwd,
onUserInfoRequest: onKeyboardInteractive, onUserInfoRequest: onKeyboardInteractive,
/// TODO: verify host key
onVerifyHostKey: (type, fingerprint) => true, onVerifyHostKey: (type, fingerprint) => true,
// printDebug: debugPrint, // printDebug: debugPrint,
// printTrace: debugPrint, // printTrace: debugPrint,
@@ -110,6 +112,8 @@ Future<SSHClient> genClient(
// Must use [compute] here, instead of [Computer.shared.start] // Must use [compute] here, instead of [Computer.shared.start]
identities: await compute(loadIndentity, privateKey), identities: await compute(loadIndentity, privateKey),
onUserInfoRequest: onKeyboardInteractive, onUserInfoRequest: onKeyboardInteractive,
/// TODO: verify host key
onVerifyHostKey: (type, fingerprint) => true, onVerifyHostKey: (type, fingerprint) => true,
// printDebug: debugPrint, // printDebug: debugPrint,
// printTrace: debugPrint, // printTrace: debugPrint,

View File

@@ -1862,8 +1862,8 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
path: "." path: "."
ref: "v4.0.12" ref: "v4.0.13"
resolved-ref: "7112ec21b752b92c2ee208e1925e8f291f15f1ee" resolved-ref: "6343b0e5f744d2c11090d34690ad5049ebbc599b"
url: "https://github.com/lollipopkit/xterm.dart" url: "https://github.com/lollipopkit/xterm.dart"
source: git source: git
version: "4.0.0" version: "4.0.0"

View File

@@ -49,7 +49,7 @@ dependencies:
xterm: xterm:
git: git:
url: https://github.com/lollipopkit/xterm.dart url: https://github.com/lollipopkit/xterm.dart
ref: v4.0.12 ref: v4.0.13
computer: computer:
git: git:
url: https://github.com/lollipopkit/dart_computer url: https://github.com/lollipopkit/dart_computer