Skip to content

Commit

Permalink
tty: add pause and resume
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Phillips committed Jul 6, 2012
1 parent 80db495 commit db58b23
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/luvit/uv.lua
Expand Up @@ -170,6 +170,14 @@ Tty.getWinsize = native.ttyGetWinsize

Tty.resetMode = native.ttyResetMode

Tty.pause = function(self)
self:readStop()
end

Tty.resume = function(self)
self:readStart()
end

--------------------------------------------------------------------------------


Expand Down

0 comments on commit db58b23

Please sign in to comment.