21 lines
457 B
PHP
21 lines
457 B
PHP
|
<?php declare(strict_types=1);
|
||
|
|
||
|
namespace Aviat\Kilo\Enum;
|
||
|
|
||
|
use Aviat\Kilo\Traits;
|
||
|
|
||
|
class KeyCode {
|
||
|
use Traits\ConstList;
|
||
|
|
||
|
public const ARROW_DOWN = "\e[B";
|
||
|
public const ARROW_LEFT = "\e[D";
|
||
|
public const ARROW_RIGHT = "\e[C";
|
||
|
public const ARROW_UP = "\e[A";
|
||
|
public const BACKSPACE = "\x7f";
|
||
|
public const DEL_KEY = "\e[3~";
|
||
|
public const ENTER = "\r";
|
||
|
public const ESCAPE = "\e";
|
||
|
public const PAGE_DOWN = "\e[6~";
|
||
|
public const PAGE_UP = "\e[5~";
|
||
|
}
|