Skip to content

Commit

Permalink
bump to v0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hymkor committed Dec 28, 2022
1 parent 91a1926 commit 3a3541f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Expect-lua for Windows
Please see [https://www.lua.org/docs.html](https://www.lua.org/docs.html)
- Expect-lua uses [GopherLua](https://github.com/yuin/gopher-lua) as the VM for Lua.
- These functions are extended in Expect-lua
- `RC=expect(A,B,C...)` accesses CONOUT$ directly and watches the cursor-line (0.1 seconds interval)
- `RC=expect(A,B,C...)` accesses CONOUT$ directly and watches the cursor-line and abobe N-lines (N+1 can be set by `capturelines`:default is 2) (0.1 seconds interval)
- When A was found in cursor-line, RC=0
- When B was found in cursor-line, RC=1
- When C was found in cursor-line, RC=2
Expand Down Expand Up @@ -37,6 +37,8 @@ Expect-lua for Windows
- `spawnctx(NAME,ARG1,ARG2,...)` is similar with spawn() but the process started by spawnctx is killed automatically when Ctrl-C is pressed. (v0.5.0~)
- `wait(PID)` waits the process of PID terminates.
- `shot(N)` reads N-lines from the console buffer and returns them. (v0.8.0~)
- `sleep(N)` sleeps N-seconds. (v0.9.0~)
- `usleep(MICROSECOND)` sleep N-micrseconds. (v0.9.0~)

``` lua
local screen = assert(shot(25))
Expand Down
4 changes: 4 additions & 0 deletions release_note.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v0.9.0
------
Dec.28,2022

- Add the new global variable: capturelines (default:2)
- Add the new function: sleep(SECOND),usleep(MICROSECOND)

Expand Down

0 comments on commit 3a3541f

Please sign in to comment.