Skip to content

Commit

Permalink
readme.md: wrote new global variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
hymkor committed Sep 24, 2022
1 parent 10be77b commit 6d6f1d2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ Expect.lua for Windows
- :
- When error occured, RC=-1
- When timeout occurs, RC=-2 (set variable like `timeout=(SECONDS)`,default 1 hour)
- When RC >= 0, these global variables are set.
- `_MATCH` - The string matched.
- `_MATCHPOSITION` - The position where matched.
- `_MATCHLINE` - The matched whole line.
- `_PREMATCH` - The string preceding matched.
- `_POSTMATCH` - The string following matched.
- `send(TEXT)` sends TEXT to the terminal as keyboard events.
- `send(TEXT,MS)` waits MS [m-seconds] per 1-character (for plink.exe)
- `sendln()` is same as send() but append CR.
Expand Down

0 comments on commit 6d6f1d2

Please sign in to comment.