mirror of
https://github.com/danog/ext-uv.git
synced 2024-11-26 20:14:47 +01:00
10 lines
233 B
PHP
10 lines
233 B
PHP
<?php
|
|
|
|
uv_fs_open(uv_default_loop(), "/dev/tty", UV::O_RDONLY, 0, function($r){
|
|
$tty = uv_tty_init(uv_default_loop(), $r, 1);
|
|
var_dump(uv_tty_get_winsize($tty, $width, $height));
|
|
var_dump($width, $height);
|
|
});
|
|
|
|
uv_run();
|