feat: initial release v0.1.0
- 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)
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
; test-echo.ttl — 最簡單的收發測試
|
||||
; 適用:Serial loopback(TX 接 RX)或任何會回顯的連線
|
||||
; 送出的字會被回顯回來,wait 命中後寫進 log。
|
||||
|
||||
prompt = '6000#'
|
||||
|
||||
wait '6000 login:'
|
||||
sendln 'admin'
|
||||
wait 'Password: '
|
||||
sendln ''
|
||||
|
||||
wait prompt
|
||||
sendln 'show version'
|
||||
|
||||
wait prompt
|
||||
sendln 'show int b'
|
||||
|
||||
wait prompt
|
||||
sendln 'show int b'
|
||||
|
||||
|
||||
messagebox 'Echo test done'
|
||||
@@ -0,0 +1,17 @@
|
||||
|
||||
prompt = '6000#'
|
||||
|
||||
wait '6000 login:'
|
||||
sendln 'admin'
|
||||
wait 'Password: '
|
||||
sendln ''
|
||||
|
||||
waitall prompt
|
||||
sendlngroup A "show version"
|
||||
sendlngroup B "show int b"
|
||||
waitall prompt
|
||||
sendlngroup A "show version"
|
||||
sendlngroup B "show int b"
|
||||
waitall prompt
|
||||
sendlngroup A "show int b"
|
||||
sendlngroup B "show version"
|
||||
@@ -0,0 +1,17 @@
|
||||
; test-loop.ttl — while 迴圈 + 變數 + pause 測試
|
||||
; 不需遠端回應;觀察 Scripts 檢視的進度(行號/指令)與 log。
|
||||
; 執行中可按 Stop 中止。
|
||||
|
||||
logopen 'loop.log'
|
||||
|
||||
idx = 0
|
||||
while idx < 5
|
||||
sendln 'echo loop'
|
||||
logwrite 'iteration'
|
||||
pause 1
|
||||
idx = idx + 1
|
||||
endwhile
|
||||
|
||||
logwrite 'loop finished'
|
||||
logclose
|
||||
messagebox 'Loop test done'
|
||||
@@ -0,0 +1,19 @@
|
||||
; 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'
|
||||
Reference in New Issue
Block a user