TISTUD-5129 Fixing stdin.setRawMethod error
Fixing the wait flag issue.
Merge pull request #229 from pinnamur/TISTUD-5129

TISTUD-5129 Fixing stdin.setRawMethod error