Skip to content

[Bug]: key_down signals no longer include a usable char field with ANSI control characters #71

Description

@Ocawesome101

Description

In 1.12.2 and older versions, pressing any combination of ctrl + a letter (e.g. ^A) sends the corresponding ANSI control character in the char field of the resulting key_down signal. For example, ^D sends 4. The 1.21.1 port no longer has this behavior, which breaks existing programs (ULOS2's VT100 emulator, for example).

Versions

  • Minecraft version: 1.21.1
  • NeoForge version: 21.1.248
  • OpenComputers version: dafb46e
  • Java version: 21.0.7

Environment

  • Operating system: Linux
  • Single-player or server: Single-player
  • Other mods installed: None

Steps to reproduce

  1. Boot OpenOS and run dmesg.
  2. Press ctrl-D.
  3. Observe that in 1.12.2, the fourth field is 4, while in 1.21.1, it is 0.

Expected behavior

This should be consistent across Minecraft versions.

Actual behavior

The char field is 0 for these events

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions