Skip to content

IO.console is missing with JRuby on Linux aarch64 #40

@PChambino

Description

@PChambino

I am testing this on a Linux aarch64 with JRuby.

I can see the io/console/ffi/stty_console is being loaded based on the warning message:
"io/console on JRuby shells out to stty for most operations"

If I manually require io/console/ffi/native_console it fails due to the platform guard at the top of the file.

However, if I remove that guard it, it loads and works fine in my brief testing.

So I have two questions:

  1. Is there any reason to not allow aarch64 in the io/console/ffi/linux_console guard?

  2. Even if it falls back to io/console/ffi/stty_console, is there any reason not to support IO.console? I think it could return File.new("/dev/tty/", "r+") similar to the one in io/console/ffi/native_console?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions