magmax / python-inquirer

A collection of common interactive command line user interfaces, based on Inquirer.js (https://github.com/SBoudrias/Inquirer.js/)
MIT License
982 stars 98 forks source link

Unable to input Nordic characters #480

Open axolul opened 8 months ago

axolul commented 8 months ago

Enviroment:

Code:

import inquirer

questions = [
    inquirer.Text('newUUID', message="Anna uusi UUID (paina Enter pitääksesi samana): "),
    inquirer.Text('newName', message="Anna uusi nimi (paina Enter pitääksesi samana): "),
    inquirer.Text('newPrice', message="Anna uusi hinta (paina Enter pitääksesi samana): "),
    inquirer.Text('newCategory', message="Anna uusi kategoria (paina Enter pitääksesi samana): "),
]

We are using inquirer in our school project. It shows Finnish/Nordic characters ä, ö and å normally when it prompts for something. But then the command line goes nuts when you try to input the same characters.

In the picture attached, I inputted "testöäåtest". As you can see, the inquiry line starts to multiply and it goes all wrong from there.

nordic_characters

Cube707 commented 8 months ago

This is a upstream issue with the readchar library, see https://github.com/magmax/python-readchar/issues/93

Cube707 commented 8 months ago

Duplicate of #432