HeyPuter / phoenix

🔥 Puter's pure-javascript shell
https://puter.com/app/terminal
GNU Affero General Public License v3.0
88 stars 15 forks source link

Fix arrow keys and other control-sequences #23

Closed AtkinsSJ closed 4 months ago

AtkinsSJ commented 4 months ago

Fixes #20.

Before:

Peek 2024-02-16 14-35 arrow keys before.webm

You can see that up/down prints garbage instead of showing command history. But, up+return does execute help again.

After:

Peek 2024-02-16 14-36 arrow keys after.webm

KernelDeimos commented 4 months ago

Tested node and also browser just to make sure responding to CR doesn't cause any issues - everything is working great! This is a really nice improvement