planetarium / libplanet

Blockchain in C#/.NET for on-chain, decentralized gaming
https://docs.libplanet.io/
GNU Lesser General Public License v2.1
506 stars 142 forks source link

Backspace not working when create key in CLI. #983

Closed Nebu1eto closed 3 years ago

Nebu1eto commented 4 years ago

Issue

Testing Environment

Nebu1eto commented 4 years ago

This Project using GetPass, but I created Sample Project. It works well in Every Environment.

using System;
using GetPass;

namespace Sample
{
    class Program
    {
        static void Main(string[] args)
        {
            var password = ConsolePasswordReader.Read();
            Console.Write(password);
            Console.WriteLine();
        }
    }
}
dahlia commented 4 years ago

Thank you for reporting!

I guess this happens because GetPass does synchronous I/O whereas the entire planet runs on async mode… 🤔