Add arrow key input support in dash

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Although dash is lite and simplified edition of bash, It doesn't support arrow key to move the cursor position.

In order to improve performance, a lot of feature in bash are removed in dash.

Add arrow key support will not cost too much performance.

Currently it dash is like that:

```sh
$ echo hello
hello
$ echo ^[[D^[[D^[[D^[[D^[[C^[[C^[[C^[[C^[[A^[[A^[[A^[[A^[[A^[[B^[[B^[[B^[[B^[[B

$ ^[[D^[[A^[[C^[[B^[[D^[[A^[[C^[[B^[[D^[[A^[[C^[[B

```

The cursor won't move but only append unexpected character.




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux