In mosh, that is.
Hi @lyosha,
I can't reproduce. What shell do you have on the server? Bash, zsh or fish?
This is:
GNU bash, version 4.4.19(1)-release (x86_64-pc-linux-gnu)
on Ubuntu 18.04.2 LTS. TERM is set to xterm-256color.
If I run vim and enter in insert mode - - blah
--blah ^?
Turns out it’s not specific to mosh, I see the same issue in ssh.
I am using PT Mono font I installed locally, though I think it reproduces with other fonts as well.
Uh, that was <minus> <minus> blah <ctrl-v> <space>
It works fine with on-screen keyboard; reproduces with the external keyboard.
I wonder if it’s related to smart dashes or something like that.
Oh, it could be, however we do remove all "smart" things in the code. Let me check
Nope, didn't worked for me. What KB do you have?
Sorry for the delay. Still experiencing this. Using Apple’s “smart keyboard folio”.
Hi
I have noticed this happen too.
nim —versionRecalling the command with up arrow, then adding the missing ‘n’ back to the previous command and pressing return—then runs it correctly. So - bit odd!
Appears to happen a lot with —version option to commands... I am using an iPad Pro 12.9” with iOS 12.4 (3rd gen iPad Pro version) with the Apple folio keyboard. Shell is bash v 5.0.3(1).
Simon
Hi @wiremoons and @lyosha.
I still can't reproduce this issue. Can you post screenshots of
Thank you
Hi Yury
Images you requested are attached. Let me know if you need anything further.
Cheers
Simon





Hi Yury
I have just removed the Apple iPad Pro folio keyboard, and instead connected an Apple Magic Keyboard via Bluetooth. It still has the same issue—so whatever the cause is not specific to the iPad Pro folio keyboard I suspect.
Just thought I would let you know.
Simon
Hi Yury
Sorry for all the messages - just trying to help figure this out.
I have run the same command that drops the ‘n’ (ie nim —version) by typing the command in Blink while running sudo showkey -a. The is an extra key being sent ^? before the carriage return I think? It is not there if I type other text in and press return—so is this being generated by Blink somehow? Screen shot below of different outputs to show what I am seeing.
Simon

same thing with showkey command in blink?
Still can't reproduce with your settings :(
The screen shot above showing the showkey outputs was done from within Blink.
Hmm, I see you run showkey on linux box. But blink have its own showkey command
Ok - didn’t realise was in Blink too :)
Run in Blink now too - shows extra key there as well. Appears to be to to do with — do you think?
Also (second screenshot below) is captured showkey via SSH from within TextTastic app, which doesn’t include the extra key in the output... so guessing Blink is adding it for some reason?


I'm trying on
still no luck...
May be you have smth under Settings.app -> General -> Text Replacement?
Also, can you try to turn off 'Auto Repeat' in Blink.app -> config -> Keyboard
Hi Yury
I have found the cause, at least in my case!
Under iOS Settings -> General -> Keyboard -> Text Replacement I had a text replacement setup (years ago I think) to replace two dashes ‘- -‘ with an em dash ‘—‘ which I use for writing in iOS text apps. See screenshot below for info.
I have removed this Text Replacement command and now the ‘n’ no longer gets chopped of the end off the command (as posted examples) in Blink! I guess that extra key being seen was iOS trying to replace the text because of the two dashes typed, as I expect it does the replacement at the end of the word or a carriage return.
Anyway - I have removed the Text Replacement and works as expect now, so at least you dont have some weird keyboard bug to find :) Not sure if @lyosha can confirm if that is the cause there too?
I am also not sure if this is desired behaviour for Blink to pass these Text Replacements into the Blink sessions? Your choice I guess as it might be seen as a feature in some way to other people..?
Thanks for your help @yury in looking into this anyway, I do appreciate your support and the fantastic Blink applications too :)
Simon

For text replacements in blink. We have to support them for some soft keyboards with autocorrection.
But I'm super glad that you find the root of that.
Excellent find! Removing dash-dash to emdash replacement fixed blink for me.
I wonder if blink could add a setting to ignore text replacements.
I think this can be closed. Though if somebody has this issue again, how would they find the solution?
I'm closing this issue.
Thank you!
Most helpful comment
Hi Yury
I have found the cause, at least in my case!
Under
iOS Settings -> General -> Keyboard -> Text ReplacementI had a text replacement setup (years ago I think) to replace two dashes ‘- -‘ with an em dash ‘—‘ which I use for writing in iOS text apps. See screenshot below for info.I have removed this Text Replacement command and now the ‘n’ no longer gets chopped of the end off the command (as posted examples) in Blink! I guess that extra key being seen was iOS trying to replace the text because of the two dashes typed, as I expect it does the replacement at the end of the word or a carriage return.
Anyway - I have removed the Text Replacement and works as expect now, so at least you dont have some weird keyboard bug to find :) Not sure if @lyosha can confirm if that is the cause there too?
I am also not sure if this is desired behaviour for Blink to pass these Text Replacements into the Blink sessions? Your choice I guess as it might be seen as a feature in some way to other people..?
Thanks for your help @yury in looking into this anyway, I do appreciate your support and the fantastic Blink applications too :)
Simon