Tty.hx 411 B

12345678910111213141516171819
  1. package lua.lib.luv;
  2. @:luaRequire("luv")
  3. extern class Tty extends Stream {
  4. static function new_tty(fd : Int, readable : Bool) : Tty;
  5. @:native("new_tty") function new(fd : Int, readable : Bool) : Void;
  6. static function reset_mode() : Int;
  7. function set_mode(mode : Int) : Int;
  8. function get_winsize() : WidthHeight;
  9. }
  10. @:multiReturn
  11. extern class WidthHeight {
  12. var width : Int;
  13. var height : Int;
  14. }