feat: add Show script trace in terminal setting
Settings -> Terminal gains a 'Show script trace in terminal' checkbox (AppSettings.ShowScriptTrace, default on). When off, TTL trace lines ([wait] progress, sent-command echo, errors) are no longer drawn in the terminal. dispstr moves to a dedicated Display event and always shows, since it is the script explicitly printing something. Trace was already display-only (never written to session logs, the AI serial bridge, or the device) - docs now state this explicitly. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -8,7 +8,11 @@
|
||||
> 本文**前段是 ETTerms 獨有指令**,**後段是與 TeraTerm 共有的指令**。
|
||||
|
||||
執行於背景執行緒,可隨時按 **Stop** 中止;`wait` / `pause` 期間皆可取消。
|
||||
腳本的進度訊息(`[wait]`、`dispstr`、錯誤等)會以灰色顯示在該分頁的終端機裡。
|
||||
|
||||
腳本的 trace 訊息(`[wait]` 進度、`>>` 送出回顯、錯誤)會以灰色顯示在該分頁的終端機裡,
|
||||
可由 **Settings → Terminal → Show script trace in terminal** 關閉;`dispstr` 是腳本明確要
|
||||
顯示的內容,一律顯示。**這些灰色訊息只出現在畫面上**——不會送到裝置、不會寫進 ⏺ Log
|
||||
側錄檔、AI serial bridge 也讀不到,機台原始 log 保持乾淨。
|
||||
|
||||
---
|
||||
|
||||
@@ -108,7 +112,7 @@ wait 'login:'
|
||||
| `waitregex` | `waitregex '樣式' ['樣式2' ...]` | 等 regex 命中;`matchstr` / `groupmatchstr1-9` 設定,`result`=第幾個;逾時 0。 |
|
||||
| `recvln` | `recvln` | 收下一行到 `inputstr`;`result` 1 成功 / 0 逾時。 |
|
||||
| `flushrecv` | `flushrecv` | 清空接收緩衝。 |
|
||||
| `dispstr` | `dispstr '文字' [更多...]` | 在終端機顯示訊息(灰色,不送出到裝置)。 |
|
||||
| `dispstr` | `dispstr '文字' [更多...]` | 在終端機顯示訊息(灰色;不送裝置、不進側錄 log、不受 Show script trace 開關影響)。 |
|
||||
| `sendbreak` | `sendbreak` | 送 serial break(**Serial 限定**,約 300ms)。 |
|
||||
| `setbaud` | `setbaud 115200` | 執行中改 baud rate(**Serial 限定**)。 |
|
||||
| `setdtr` / `setrts` | `setdtr 1` / `setrts 0` | 控制 DTR / RTS 腳位(**Serial 限定**)。 |
|
||||
|
||||
Reference in New Issue
Block a user