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

Setting Console.TreatControlCAsInput to true causes text to be removable #44667

Open
Tracked by #64487
vsfeedback opened this issue Nov 13, 2020 · 2 comments
Open
Tracked by #64487
Labels
area-System.Console bug help wanted [up-for-grabs] Good issue for external contributors os-windows
Milestone

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


For some reason, setting Console.TreatControlCAsInput to 'true' causes text printed with "Console.Write" to be removable. To reproduce, simply create a new Console application and paste the following code in the main method:

//Console.TreatControlCAsInput = true;
Console.Write("Test> ");
while (true) Console.Read();

Start the application (with the first line commented) and write some input. Then hold down backspace; the text should remove until the end of "Test> " and you aren't able to remove more characters.
Now uncomment the first line and start the application again. Write some input and hold down backspace; for some reason now every text is removed with backspace, even what was printed with Console.Write.


Original Comments

Feedback Bot on 5/21/2020, 03:45 AM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

Feedback Bot on 7/2/2020, 11:17 PM:

I have detected that for the last 35 days, this issue didn't have much product team activity and a very small amount of new votes or comments. Based on this, its severity, and affected area, it’s my experience that this issue is very unlikely to be fixed.

Dada Huo [MSFT] on 11/3/2020, 00:38 AM:

Thank you for taking the time to log this issue! Did you still reproduce this issue in the latest stable version of Visual Studio installed from https://visualstudio.microsoft.com/downloads ?
If so, could you please provide a sample solution that has this problem so that we can conduct further research?

We look forward to hearing from you!

Full Name on 11/10/2020, 04:27 AM:

(private comment, text removed)


Original Solutions

(no solutions)

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added area-System.Console untriaged New issue has not been triaged by the area owner labels Nov 13, 2020
@ghost
Copy link

ghost commented Nov 13, 2020

Tagging subscribers to this area: @eiriktsarpalis, @jeffhandley
See info in area-owners.md if you want to be subscribed.

Issue Details
Description:

This issue has been moved from a ticket on Developer Community.


For some reason, setting Console.TreatControlCAsInput to 'true' causes text printed with "Console.Write" to be removable. To reproduce, simply create a new Console application and paste the following code in the main method:

//Console.TreatControlCAsInput = true;
Console.Write("Test> ");
while (true) Console.Read();

Start the application (with the first line commented) and write some input. Then hold down backspace; the text should remove until the end of "Test> " and you aren't able to remove more characters.
Now uncomment the first line and start the application again. Write some input and hold down backspace; for some reason now every text is removed with backspace, even what was printed with Console.Write.


Original Comments

Feedback Bot on 5/21/2020, 03:45 AM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

Feedback Bot on 7/2/2020, 11:17 PM:

I have detected that for the last 35 days, this issue didn't have much product team activity and a very small amount of new votes or comments. Based on this, its severity, and affected area, it’s my experience that this issue is very unlikely to be fixed.

Dada Huo [MSFT] on 11/3/2020, 00:38 AM:

Thank you for taking the time to log this issue! Did you still reproduce this issue in the latest stable version of Visual Studio installed from https://visualstudio.microsoft.com/downloads ?
If so, could you please provide a sample solution that has this problem so that we can conduct further research?

We look forward to hearing from you!

Full Name on 11/10/2020, 04:27 AM:

(private comment, text removed)


Original Solutions

(no solutions)

Author: vsfeedback
Assignees: -
Labels:

area-System.Console, untriaged

Milestone: -

@eiriktsarpalis eiriktsarpalis added bug and removed untriaged New issue has not been triaged by the area owner labels Nov 16, 2020
@eiriktsarpalis eiriktsarpalis added this to the 6.0.0 milestone Nov 16, 2020
@eiriktsarpalis
Copy link
Member

The issue reproduces on Windows only (both in .NET Core and framework). Linux is unaffected.

@adamsitnik adamsitnik modified the milestones: 6.0.0, 7.0.0 Jul 26, 2021
@jeffhandley jeffhandley modified the milestones: 7.0.0, Future Jul 9, 2022
@adamsitnik adamsitnik added the help wanted [up-for-grabs] Good issue for external contributors label Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Console bug help wanted [up-for-grabs] Good issue for external contributors os-windows
Projects
None yet
Development

No branches or pull requests

5 participants