Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mcrcon encoding issue? #21

Closed
r0bis opened this issue Sep 24, 2017 · 4 comments
Closed

mcrcon encoding issue? #21

r0bis opened this issue Sep 24, 2017 · 4 comments
Labels

Comments

@r0bis
Copy link

r0bis commented Sep 24, 2017

Hi, I installed mcrcon and it connects just fine, but in the terminal I have some sort of encoding problem. My terminal is set to use UTF-8 (gnome 3/arch linux), but up-arrow gives instead of command history output you can see on the bottom line and ? gives this output with strange characters. Could you help with this please?

�--------- �Help: Index (1/23) �--------------------
�Use /help [n] to get page n of help.
�Aliases: �Lists command aliases
�Bukkit: �All commands for Bukkit
�Essentials: �All commands for Essentials
�EssentialsSpawn: �All commands for EssentialsSpawn
�Minecraft: �All commands for Minecraft
�/achievement: �A Mojang provided command.
�/afk: �Marks you as away-from-keyboard.
�/antioch: �A little surprise for operators.
> ^[[A

Commands seem to work ok, it is just strange characters that get appended

> who
ÂThere are Â3Â out of maximum Â20Â players online.

That is when I set encoding to Western ISO-8895-1

@Hagb
Copy link
Contributor

Hagb commented Oct 1, 2017

Hello, You can make you terminal in UTF-8 and try this #20 .

@carlbennett
Copy link

Confirmed #20 fixes this issue

@r0bis
Copy link
Author

r0bis commented Mar 16, 2019

Great, thanks so much - it works well now @carlbennett with your fork. All one could wish for is autocompletion with tab and ability to go through previous commands with Up-arrow, but it is awesome as it is. I wish I had seen your fork earlier.

@Tiiffi
Copy link
Owner

Tiiffi commented Sep 27, 2019

This "strange characters" problem (related to color handling) is fixed in latest develop branch (waiting to be pushed).

@r0bis

All one could wish for is autocompletion with tab and ability to go through previous commands with Up-arrow, but it is awesome as it is.

I have been thinking about this. At first glance it sounds trivial but in reality in might be hard to implement in a portable way without using extra libraries such as curses.

For now I am trying to keep the source as concise and dependency free as possible.

@Tiiffi Tiiffi added the bug label Oct 20, 2019
@Tiiffi Tiiffi closed this as completed Oct 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants