fix accessing current terminal

use `current terminal` instead of `first terminal` to access current terminal
Merge pull request #4 from toy/patch-1

fix accessing current terminal