Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow specifying Alt key combinations #16

Open
agarwal opened this issue Oct 22, 2014 · 5 comments
Open

allow specifying Alt key combinations #16

agarwal opened this issue Oct 22, 2014 · 5 comments

Comments

@agarwal
Copy link

agarwal commented Oct 22, 2014

The key sequence parser only supports C-, M-, and S-. Would it be possible to support Alt- (I'm not sure what is the standard abbreviation for Alt). I'm still unable to make use of utop's autocompletion because of issues as reported in: ocaml-community/utop#25, ocaml-community/utop#43, and ocaml-community/utop#42.

@Drup
Copy link
Member

Drup commented Oct 22, 2014

Alt- is the same as M-

@agarwal
Copy link
Author

agarwal commented Oct 22, 2014

Alt- is the same as M-

Is that true by definition, or is it just usually the case? If I set M-left, M-right, and M-down in my .lambda-term-inputrc, I still can't use Alt key combinations to navigate the completion bar.

@agarwal
Copy link
Author

agarwal commented Oct 22, 2014

Well, I found an option in Mac's Terminal app to "Use Option as Meta key", and further the Option and Alt key are the same on my Apple keyboard. I set this option, which presumably assures that my Alt key is the Meta key, but still no luck. The problem is the same when I'm connected to Linux systems and when I use xterm.

@ghost
Copy link

ghost commented Oct 23, 2014

I tried and the Mac's terminals returns M-b, M-f, ... for Option+Arrow. I'll add these bindings by default when running on the Mac's terminal. In the meantime you can bind M-b, M-f, ... You can use the script print_sequences to find out the exact characters.

@agarwal
Copy link
Author

agarwal commented Oct 23, 2014

@diml thanks! I used print_sequences before but somehow managed to not get the settings correct. Now, finally, it works with:

$ cat ~/.lambda-term-inputrc 
[read-line]
M-b: complete-bar-prev
M-f: complete-bar-next

qheath pushed a commit to qheath/lambda-term that referenced this issue Mar 21, 2019
Add Pixel_format.{of_string,to_string,planes}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants