Hi,
The \033[18t control sequence did'nt return any result. Here a PHP script
who works outside tmux sessions:
echo "\033[18t";
// Read \033[8;y;xt.
fread(STDIN, 4); // skip \033, [, 8 and ;.
$x = null;
$y = null;
$handle = &$y;
do {
$char = fread(STDIN, 1);
switch($char) {
case ';':
$handle = &$x;
break;
case 't':
break 2;
default:
$handle .= $char;
}
} while(true);
return array(
'x' => (int) $x,
'y' => (int) $y
);
The first fread always timeout. Is there somethin to do to get the
\033[8;h;wt answer ?
Thanks
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users