Skip to content

Commit f2e4e6c

Browse files
committed
Update readme.md and release_note for v0.8.0
1 parent 0642f66 commit f2e4e6c

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

readme.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ Expect.lua for Windows
3636
- `kill(PROCESS-ID)` kills the process. (v0.4.0~)
3737
- `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~)
3838
- `wait(PID)` waits the process of PID terminates.
39+
- `shot(N)` reads N-lines from the console buffer and returns them. (v0.8.0~)
40+
41+
``` lua
42+
local screen = assert(shot(25))
43+
for i = 1,#screen do
44+
print( i,screen[i] )
45+
end
46+
```
3947

4048
Install
4149
-------

release_note.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
v0.8.0
2+
------
3+
Dec.25,2022
4+
5+
- Add the new function: shot(N) that reads N-lines from the console buffer.
6+
17
v0.7.1
28
------
39
Nov.29,2022

0 commit comments

Comments
 (0)