Closed travisdowns closed 1 month ago
My ble-bind should be the default, I haven't changed anything but here it is for completeness:
As noted in README 3.3, C-RET can be used only when your terminal supports it or allows configuring it. What is your terminal?
Thanks @akinomyoga for the quick reply. I'm using gnome-terminal. I had read 3.3 and also 3.6.4 where it points but the implication wasn't clear to me. I didn't understand until just now that modifyOtherKeys
was a terminal feature (I thought it was a ble.sh setting).
So as I understand it: my terminal does not support modifyOtherKeys
-like behavior, so RET
is transmitted as C-m
and C-RET
cannot even be detected as distinct since it is also transmitted as C-m?
To make the latter determination I used showkey -a
at the terminal I and pushed in sequence RET
, left_ctrl+RET
and right_ctrl+RET
and they all show as simply C-m
:
$ sudo showkey -a
Press any keys - Ctrl-D will terminate this program
^M 13 0015 0x0d
^M 13 0015 0x0d
^M 13 0015 0x0d
So then my best option is to rely on C-j
I think.
I was trying to check whether there is a way to configure the key sequence for each key combination, but GNOME Terminal (whose core is called VTE) intensionally doesn't seem to implement the configuring. I found a comment by the VTE developer in https://github.com/microsoft/terminal/issues/2005#issuecomment-512450478. In addition, the developer tells on the same thread that they don't want to implement modifyOtherKeys
either because they think modifyOtherKeys
is inconsistent.
So then my best option is to rely on
C-j
I think.
So yes, I think so, unfortunately.
No worries and much thanks for the follow up!
New ble.sh user so perhaps I'm just missing something, but when I get an autocomplete at the prompt, I understand that
C-RET
(control + enter) should select and execute auto-completion but it does not.For example I type
echo
and wait a second andecho hi
is offered as the auto-complete (see screenshot), if I hit thenC-RET
it executes onlyecho
, same as if I simply hitRET
.C-j
does accept and execute the completion, however.