Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Backspace doesn't work when running neo-cli on linux #503

Closed
superboyiii opened this issue Dec 9, 2019 · 8 comments · Fixed by #516
Closed

Backspace doesn't work when running neo-cli on linux #503

superboyiii opened this issue Dec 9, 2019 · 8 comments · Fixed by #516
Assignees

Comments

@superboyiii
Copy link
Member

superboyiii commented Dec 9, 2019

Issue:
Backspace button doesn't work when running neo-cli on linux but it works well on win x64. It makes command line inputs will not be displayed but still have effect.
image
How to reproduce it:
Start node, input open wallet XX.json, then input any command. This issue will appears.
Which version:
Latest master
Which device:
Linux
@neo-project/core

@erikzhang
Copy link
Member

I don't have a linux environment here. Can anyone test it?

@shargon
Copy link
Member

shargon commented Dec 9, 2019

I will try it

@cloud8little
Copy link
Contributor

@shargon how did it work? I tried with the same result, and actually after any valid command(with valid result), all commands afterwards can not be shown on the screen, both linux and mac os.

@shargon
Copy link
Member

shargon commented Dec 11, 2019

It's working well in my laptop with the linux subshell (tested with master)

Linux XXXX 4.4.0-18362-Microsoft #476-Microsoft Fri Nov 01 16:53:00 PST 2019 x86_64 x86_64 x86_64 GNU/Linux

Also in a debian (tested with 2x version)

Linux XXXXX 4.9.0-11-amd64 #1 SMP Debian 4.9.189-3+deb9u1 (2019-09-20) x86_64

@shargon
Copy link
Member

shargon commented Dec 11, 2019

Ups, my mistake, the problem is when open the wallet. Yes, it's happend to me. I will review it asap

@shargon shargon self-assigned this Dec 11, 2019
@shargon
Copy link
Member

shargon commented Dec 11, 2019

I was able to find the bug, but not the solution

Console.ReadLine(); // Show the output
Console.Read();  // Read one char
Console.ReadLine(); // This doesn't show the output

image

Console.Read disable the future outputs of Console.ReadLine in Linux :S

@shargon
Copy link
Member

shargon commented Dec 11, 2019

The only solution I see is always read and write us.

@shargon
Copy link
Member

shargon commented Dec 11, 2019

Please, check this solution #516

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants