Skip to content

Unable to type the character â over an SSH session  #518

Closed

Description

@louim

Description

Locally, I'm able to type the â character in an IRB console without problems. However, when running IRB remotely on an SSH connexion, I'm unable to type the character.

Locally:

Screen.Recording.2023-03-08.at.10.21.22.AM.mov

Remotely

Screen.Recording.2023-03-08.at.10.22.14.AM.mov

Result of irb_info

Local

Ruby version: 3.1.3
IRB version: irb 1.6.2 (2022-12-13)
InputMethod: RelineInputMethod with Reline 0.3.2 and /Users/louim/.inputrc
.irbrc path: /Users/louim/.irbrc
RUBY_PLATFORM: x86_64-darwin21
LANG env: en_US.UTF-8
East Asian Ambiguous Width: 1

Remote

Ruby version: 3.1.3
IRB version: irb 1.4.1 (2021-12-25)
InputMethod: ReidlineInputMethod with Reline 0.3.1
.irbrc path: /home/app/.irbrc
RUBY_PLATFORM: x86_64-linux
LANG env: en_CA.UTF-8
LC_ALL env: en_CA.UTF-8
East Asian Ambiguous Width: 1

Terminal Emulator

Iterm 2 Build 3.4.19

Setting Files

Remote:

cat ~/.irbrc
IRB.conf[:USE_AUTOCOMPLETE] = false

Going over the irb_info, I see that the reline and the IRB versions are different. Could it be related? I'm not sure how / when reline and IRB is updated in relation to the installed ruby version.

Activity

  1. ima1zumi commented on Mar 9, 2023

    @ima1zumi
    Member

    Could you type â in remote shell, for example, bash?

    Also, please tell me how to type ^a to display â.
    Is there a shortcut or an OS setting?

  2. louim commented on Mar 9, 2023

    @louim
    Author

    It seems to be working correctly in Bash:

    Screen.Recording.2023-03-08.at.8.47.28.PM.mov

    In Mac OS (I'm sure there is an equivalent on other OS'es):

    • Change the keyboard layout to Canadian French - CSA
    • Using the keyboard viewer, press ^
    • Using the keyboard viewer, press a

    Screen Shot 2023-03-08 at 8 51 21 PM

    Screen Shot 2023-03-08 at 8 53 10 PM

    Screen Shot 2023-03-08 at 8 52 48 PM

  3. ima1zumi commented on Mar 16, 2023

    @ima1zumi
    Member

    Thanks for your report!
    Perhaps this default setting in Reline has caused it to be assigned to a different key binding.
    I think this is a problem with Reline. I will transfer this issue.

    https://github.com/ruby/reline/blob/master/lib/reline/ansi.rb#L122-L123

  4. transferred this issue fromruby/irbon Mar 16, 2023
  5. tompng commented on Jul 19, 2023

    @tompng
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions