mirror of
https://github.com/nadrad/h-m-m.git
synced 2024-05-17 22:46:32 +02:00
nothing!
This commit is contained in:
parent
0ff42afd04
commit
a7ac9a254d
16
h-m-m
16
h-m-m
|
@ -515,7 +515,7 @@ function enable_alternate_screen()
|
||||||
// https://www.ibm.com/docs/en/aix/7.1?topic=s-stty-command
|
// https://www.ibm.com/docs/en/aix/7.1?topic=s-stty-command
|
||||||
system('stty cbreak -echo -crterase intr undef');
|
system('stty cbreak -echo -crterase intr undef');
|
||||||
|
|
||||||
echo
|
echo
|
||||||
"\033[?1049h" // enabling the alternate screen buffer
|
"\033[?1049h" // enabling the alternate screen buffer
|
||||||
."\033[?25l" // disabling the text cursor
|
."\033[?25l" // disabling the text cursor
|
||||||
."\033[?9;1000;1001;1002;1003;1004;1007;1005;1006;1015;1016l" // disabling the mouse
|
."\033[?9;1000;1001;1002;1003;1004;1007;1005;1006;1015;1016l" // disabling the mouse
|
||||||
|
@ -526,7 +526,7 @@ function enable_alternate_screen()
|
||||||
|
|
||||||
function shutdown()
|
function shutdown()
|
||||||
{
|
{
|
||||||
echo
|
echo
|
||||||
clear_screen
|
clear_screen
|
||||||
."\033[?1049l" // enabling the default screen buffer
|
."\033[?1049l" // enabling the default screen buffer
|
||||||
."\033[?25h" // enabling the text cursor
|
."\033[?25h" // enabling the text cursor
|
||||||
|
@ -1725,7 +1725,7 @@ function magic_readline(&$mm, $title)
|
||||||
// ctrl+backspace
|
// ctrl+backspace
|
||||||
elseif ($in==special_keys['ctrl_back_space'])
|
elseif ($in==special_keys['ctrl_back_space'])
|
||||||
{
|
{
|
||||||
$from =
|
$from =
|
||||||
max
|
max
|
||||||
(
|
(
|
||||||
0
|
0
|
||||||
|
@ -1741,7 +1741,7 @@ function magic_readline(&$mm, $title)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
;
|
;
|
||||||
$title =
|
$title =
|
||||||
mb_substr($title, 0, $from + ($from>0) )
|
mb_substr($title, 0, $from + ($from>0) )
|
||||||
.mb_substr($title, $cursor-1)
|
.mb_substr($title, $cursor-1)
|
||||||
;
|
;
|
||||||
|
@ -1771,7 +1771,7 @@ function magic_readline(&$mm, $title)
|
||||||
elseif ($in==special_keys['ctrl_del'])
|
elseif ($in==special_keys['ctrl_del'])
|
||||||
{
|
{
|
||||||
$len = mb_strlen($title);
|
$len = mb_strlen($title);
|
||||||
$from =
|
$from =
|
||||||
mb_strpos
|
mb_strpos
|
||||||
(
|
(
|
||||||
$title
|
$title
|
||||||
|
@ -1785,7 +1785,7 @@ function magic_readline(&$mm, $title)
|
||||||
;
|
;
|
||||||
if ($from===false)
|
if ($from===false)
|
||||||
$from=$len;
|
$from=$len;
|
||||||
$title =
|
$title =
|
||||||
mb_substr($title, 0, $cursor-1)
|
mb_substr($title, 0, $cursor-1)
|
||||||
.mb_substr($title, $from+1 )
|
.mb_substr($title, $from+1 )
|
||||||
;
|
;
|
||||||
|
@ -3594,7 +3594,7 @@ function sort_siblings()
|
||||||
[
|
[
|
||||||
(9000000 - $values[1] + $values[2])
|
(9000000 - $values[1] + $values[2])
|
||||||
.'.'
|
.'.'
|
||||||
.$sid
|
.$sid
|
||||||
]
|
]
|
||||||
= $sid;
|
= $sid;
|
||||||
else
|
else
|
||||||
|
@ -3608,7 +3608,7 @@ function sort_siblings()
|
||||||
)
|
)
|
||||||
.'.'
|
.'.'
|
||||||
.$sid
|
.$sid
|
||||||
]
|
]
|
||||||
= $sid;
|
= $sid;
|
||||||
|
|
||||||
ksort($siblings, SORT_NATURAL);
|
ksort($siblings, SORT_NATURAL);
|
||||||
|
|
Loading…
Reference in a new issue