Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hymkor committed Jun 27, 2017
1 parent db61749 commit a667fb3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ Expect for Windows Command Prompt Powered by GopherLua
- A tool like `expect` on Linux.
- Scripts are to be written with Lua ([GopherLua](https://github.com/yuin/gopher-lua))
- Some built-in functions exists:
- `expect()` 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 (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
- :
- When error occured, rc=-1
- `send()` occurs keyboard events against CONIN$.
- `spawn()` starts applications and returns true on success or false on failure.
- `echo()` controls echoback
Expand Down

0 comments on commit a667fb3

Please sign in to comment.