Skip to content

Commit

Permalink
Document CTRL_ constants
Browse files Browse the repository at this point in the history
  • Loading branch information
jessarcher committed Sep 15, 2023
1 parent bdfb130 commit 3b15511
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/Key.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,43 @@ class Key

const END = "\e[4~";

/**
* Cancel/SIGINT
*/
const CTRL_C = "\x03";

/**
* Previous/Up
*/
const CTRL_P = "\x10";

/**
* Next/Down
*/
const CTRL_N = "\x0E";

/**
* Forward/Right
*/
const CTRL_F = "\x06";

/**
* Back/Left
*/
const CTRL_B = "\x02";

/**
* Backspace
*/
const CTRL_H = "\x08";

/**
* Home
*/
const CTRL_A = "\x01";

/**
* End
*/
const CTRL_E = "\x05";
}

0 comments on commit 3b15511

Please sign in to comment.