Skip to content

Releases: hymkor/expect

v0.6.0

18 Dec 05:35
Compare
Choose a tag to compare
  • Add the new function wait(PID) that waits the process of PID terminates.
    PIDのプロセスが終了するのを待つ関数 wait を追加

Sample :

local pid = assert(spawn("notepad"))
echo("wait ".. pid)
assert(wait(pid))
echo("done ".. pid)

v0.5.0 (20210429)

29 Apr 06:10
Compare
Choose a tag to compare
  • Implement Lua function: spawnctx()
    • The new function spawnctx is the similar one with spawn, but the process started by spawnctx is killed when Ctrl-C is pressed.

  • Lua関数 spawnctx を実装
    • 新関数の spawnctxspawn と似ているが、起動されたプロセスは Ctrl-C が押された時に自動的に kill される

v0.4.0 (20210415)

14 Apr 22:40
Compare
Choose a tag to compare
  • Add a new function: kill(PROCESS-ID)
  • spawn() returns PROCESS-ID on success , or nil on failure. (It returned true or false before )
  • Remove import "io/ioutil" from the source file.
  • (#20) -color=nerver args and batch suport long lines with the caret (^) (Thanks to @a690700752 )

  • 新関数 kill (プロセスID) を追加
  • spawn() は成功時にプロセスID、失敗時に nil を返すようにした。(以前は true / false を返していた)
  • ソースから import "io/ioutil" を削除
  • (#20) オプション -color=nerver とキャレット (^) による長い行のサポート (Thanks to @a690700752 )

v0.3.3 (20191220)

20 Dec 15:12
Compare
Choose a tag to compare
  • (#14) Fixed that wRepeatCount (the parameter for WriteConsoleInput) was not set 1 to send key-events.
    By this bug, some console applications cound not recieve keys from expect.exe . (Thanks to @vctls )

  • (#14) キーイベントを送信する際に、WriteConsoleInput's のパラメータ wRepeatCount に 1 をセットしていなかった不具合を修正した。この不具合のせいで、コンソールアプリケーションのいくつかが expect.exe からのキーを受信できていなかった。

v0.3.2 (20181218)

18 Dec 02:01
Compare
Choose a tag to compare
  • Fix bug that scripts embeded in batchfile could not be executed sometimes

  • バッチファイルに埋め込まれたスクリプトが時々実行できない不具合を修正した。

v0.3.1 (20180828)

28 Aug 02:11
Compare
Choose a tag to compare
  • Rebuild with Go 1.11 (the files of the previous version are built with Go 1.10)

v0.3.0 (20180808)

08 Aug 05:03
Compare
Choose a tag to compare
  • Add send() the second parameter as mili-second to wait per 1 character sent #6 ( Thanks to @tangingw )

v0.2.0 (20180807)

07 Aug 10:04
Compare
Choose a tag to compare
  • #5, Implemented arg[] which are stored commandline arguments (Thanks to @tangingw )
  • #4, Skip ByteOrderMark (EF BB BF) from source Lua script (Thanks to @tangingw )
  • Lines startings with '@' are always skipped without -x option,

v0.1.1 (20170921)

21 Sep 02:19
Compare
Choose a tag to compare
  • Fix: runtime error: makeslice: len out of range #2

  • Source file are not modified. You have to update your local source of go-getch to include the change hymkor/go-getch@a82c486

v0.1.0 (20170627)

27 Jun 13:30
Compare
Choose a tag to compare
  • colored
  • expect() returns the number of found string
  • Add echo()