zopencommunity / bashport

The Bourne Again shell
Apache License 2.0
8 stars 3 forks source link

ctrl+arrow isn't handled #52

Open AnthonyGiorgio opened 1 year ago

AnthonyGiorgio commented 1 year ago

I like to use the key combinations of ctrl+left arrow and ctrl+right arrow in bash to move the cursor between words. This has never worked on the z/OS bash ports, and does not work on the zOpen one either. It sure would be nice if this key combo worked properly.

Instead of moving the cursor, they key combos just print the below "garbage" characters. 5C and 5D are for left and right. 5A and 5B are for up and down.

angio@pkstnp8 ~> afdsads  afdssfdsfa;5D;5D;5C;5C;5A;5B;5D;5D;5D 
IgorTodorovskiIBM commented 1 year ago

@MikeFultonDev we should consider distributing an inputrc similar to how we distribute ca-certs.

Linux has an /etc/inputrc which works with our bash. The INPUTRC envar can be set to point to the inputrc.