Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Console can't handle the Ctrl+Key ? #773

Closed
marlboromoo opened this issue Sep 5, 2013 · 3 comments
Closed

Console can't handle the Ctrl+Key ? #773

marlboromoo opened this issue Sep 5, 2013 · 3 comments
Assignees
Milestone

Comments

@marlboromoo
Copy link

We can use the following keys in the Linux shell or CraftBukkit console:

  • Ctrl+e to move the cursor to the end of the line
  • Ctrl+b instead of Backspace key
  • UP/DOWN key to rotate the commands
  • LEFT/RIGHT key to move the cursor

But in the PocketMine console we just got some strings instead, e.g., ^E, ^B, ^[[A, ^[[B, ^[[C, ^[[D.
Is this a bug ? :3

@ghost ghost assigned shoghicp Sep 5, 2013
@shoghicp
Copy link
Member

shoghicp commented Sep 5, 2013

You'll need to compile PHP with libedit support, but it is broken right now.

@wrewolf
Copy link
Contributor

wrewolf commented Sep 5, 2013

With libedit this function can work? i can try to make with libedit

@shoghicp
Copy link
Member

shoghicp commented Sep 5, 2013

Yes, libedit/readline handles that. At least I've tested the history ;)

On the compile.sh script there is an entry for libedit, but it fails a lot

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants