- KKTerm-style UI: Activity Rail, Connection Sidebar, Tabbed Workspace - Serial Port connection (System.IO.Ports) - SSH connection (SSH.NET, password/key/keyboard-interactive) - Local Shell via Windows ConPTY (PowerShell/Bash/Cmd) - VT100/ANSI terminal rendering (owner-drawn, double-buffered) - TTL script engine: send, sendln, wait, pause, timeout, if/while, messagebox - Group execution: waitall, sendlnall, sendlngroup (Barrier sync) - Run All / Run Group toolbar buttons - SFTP file browser sidebar (SSH.NET SftpClient) - PDU control via SNMP (pduconnect/pductrl commands) - Settings: Terminal prefs, Shell config, PDU monitoring - About page with changelog - AppSettings persisted to %LocalAppData%\ETTerms\ - Dark theme throughout (KKTerm purple accent)
20 lines
404 B
Turtle
20 lines
404 B
Turtle
; test-ssh.ttl — SSH 互動式自動化範例
|
|
; 先在 Terminal 檢視開好 SSH 連線(已登入到 shell),再切到 Scripts 執行。
|
|
; 依你的提示字元調整 wait 目標($ 一般使用者 / # root)。
|
|
|
|
timeout = 10
|
|
flushrecv
|
|
|
|
logopen 'ssh.log'
|
|
|
|
sendln 'uname -a'
|
|
wait '$'
|
|
sendln 'uptime'
|
|
wait '$'
|
|
sendln 'whoami'
|
|
wait '$'
|
|
|
|
logwrite 'commands sent'
|
|
logclose
|
|
messagebox 'SSH test done'
|