Bug 57512 - key input error after "vi" execution
Summary: key input error after "vi" execution
Status: NEEDINFO
Alias: None
Product: Class Libraries
Classification: Mono
Component: mscorlib (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-06-15 02:01 UTC by s2quake
Modified: 2017-09-12 13:54 UTC (History)
2 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments

Description s2quake 2017-06-15 02:01:33 UTC
using System;
using System.Diagnostics;

namespace ConsoleApp1
{
    class MainClass
    {
        public static void Main(string[] args)
        {
            var s = Console.CursorTop; // this line raise a key bug
            var startInfo = new ProcessStartInfo();

            startInfo.UseShellExecute = false;
            startInfo.FileName = @"vi";
            startInfo.Arguments = "";

            using (var process = Process.Start(startInfo))
            {
                process.WaitForExit();
            }

            // press left key after vi exit
            ConsoleKeyInfo keyInfo;
            while ((keyInfo = Console.ReadKey(true)).Key != ConsoleKey.Q)
            {
                //keyInfo.Key is not ConsoleKey.LeftArrow
                Console.Write(keyInfo.KeyChar);
            }
        }
    }
}
Comment 1 Marek Safar 2017-09-12 13:54:38 UTC
Thank you for your report!

I’m unable to reproduce this issue locally using the information you provided. In order to investigate the issue further can you please attach a reproduction project and steps to reproduce this issue? For help on writing a bug report, please see our guide on this topic:

https://bugzilla.xamarin.com/page.cgi?id=bug-writing.html

Some of your next steps would be:

1. Including a sample project or steps to reproduce this problem
2. Your Version Information
3. Your expected results and actual results

Thank you!

Note You need to log in before you can comment on or make changes to this bug.