mojira.dev
MC-193387

Server's console doen't handle the arrow keys correctly on Linux

On Linux, the Vanilla server's console does not handle the arrow keys correctly (other function keys do too). It will output ANSI code like ^[[A directly. Also in the output of "Unknown command" it seems that it is processed and the position of the pointer becomes weird.

It also happened when we try to remove a multi-byte character, such as an East Asian language, it will appear that it cannot be removed. Try to remove the character by pressing backspace will leave a blank space and the blank space is undeletable from console.

So it make us can't switch up/down commands in console.

Also the problem is not only with PuTTY and OpenSSH, but has been tested by multiple people and occurs on physical Linux servers as well.

We have tested vanilla servers from version 1.9.4 and they all have this problem.

Thank you for your interest in this issue.

Linked issues

Attachments

Comments 5

Are you sure this is an issue with Minecraft itself and not with your shell? Do you use /bin/sh or /bin/bash, or something different?

Hello. I tested it in /bin/sh and /bin/bash but it didn't change things...

In addition we tested with different terminals in different server environments (except Windows, it just works fine) and this problem appeared.

But I'm not pretty sure we don't have common problems in the tests ;(

Hi, I have tested the same version of the server with spigot, and this issue never happened. So, I think it's maybe a bug of vanilla.

I did some more testing, this is an issue on all Linux versions and distributions, regardless of what shell is being used.

Keys which do not work are the arrow keys, home and end keys, and the delete key.

I also tested this on Windows, and everything is fine, so it seems this issue affects only Linux.

I can confirm I experience this issue using Oracle Linux and continues to be a problem in 1.21.1 server. I'm accessing the linux server using the Terminal app on Mac OS 14.5.

Remilia Scarlet

(Unassigned)

Community Consensus

Dedicated Server

1.16.1, 1.16.5, 21w06a

Retrieved