feat(scripting): add sprintf2 command and fix prompt-wait race (v0.1.2)

- Add TeraTerm-compatible sprintf2 (C printf formatting into a string var)

- Fix SVOS power-cycle script racing ahead by gating prompt waits behind output-completion markers

- Bump version to 0.1.2; docs and README updates
This commit is contained in:
2026-06-04 14:13:43 +08:00
parent a8dc3d4a7a
commit 7b8f04e1dd
14 changed files with 1454 additions and 37 deletions
+25
View File
@@ -0,0 +1,25 @@
; sprintf2 /
; session messagebox
sprintf2 ver 'Tera Term 4.%d' 51
messagebox ver
sprintf2 win 'Windows %d (+%s)' 2000 'SP4'
messagebox win
sprintf2 test '%s=%d %s=0x%x' 'dec' 10 'hex' 33
messagebox test
; / /
sprintf2 pad '[%05d] [%-8s] [%+.2f]' -42 'hi' '3.14159'
messagebox pad
;
sprintf2 acc '%s' 'start'
sprintf2 acc '%s-A' acc
sprintf2 acc '%s-B' acc
messagebox acc
; result 0=
sprintf2 ok '%d' 1
messagebox result