mirror of
https://github.com/nadrad/h-m-m.git
synced 2024-06-08 03:52:12 +02:00
echo-keys switch for troubleshooting
This commit is contained in:
parent
eb1fec66f0
commit
4562afb527
13
h-m-m
13
h-m-m
|
@ -123,6 +123,7 @@ config($mm, 'clipboard_in_command', "");
|
|||
config($mm, 'clipboard_out_command', "");
|
||||
|
||||
config($mm, 'auto_save', false);
|
||||
config($mm, 'echo_keys', false);
|
||||
|
||||
|
||||
if (isset($mm['arguments']['debug_config']))
|
||||
|
@ -3601,11 +3602,13 @@ function monitor_key_presses(&$mm)
|
|||
if (isset($keybindings[$in]))
|
||||
call_user_func($keybindings[$in]);
|
||||
|
||||
// uncomment the following to discover the escape codes:
|
||||
// echo "\033[1;1f";
|
||||
// for ($i=0; $i<strlen($in); $i++)
|
||||
// echo base_convert(ord($in[$i]),10,8).' ';
|
||||
// echo ' ';
|
||||
if ($mm['echo_keys'])
|
||||
{
|
||||
echo "\033[1;1f";
|
||||
for ($i=0; $i<strlen($in); $i++)
|
||||
echo base_convert(ord($in[$i]),10,8).' ';
|
||||
echo ' ';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue