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

Solves a bug when typing Control+LeftArrow and other similar combinations #70

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

loudenvier
Copy link

When typing Control+LeftArrow (and other similar key combinations) the \0 char was being written to the console which was causing havoc in typing. This commit fixes it by preventing writing the \0 char, but, maybe we should prevent writing non-printable characters altogether

When typing Control+LeftArrow (and other similar key combinations) the \0 char was being written to the console which was causing havoc in typing. This commit fixes it by preventing writing of the \0 char, but, maybe we should prevent writing non-printable characters altogether
@Latency
Copy link

Latency commented Sep 26, 2024

Check on my fork for a fix. I can merge it there since owner is inactive on this repo

I will be back from PTO after Oct 2. I can merge and publish it after that date at earliest.

@loudenvier
Copy link
Author

Check on my fork for a fix. I can merge it there since owner is inactive on this repo

I will be back from PTO after Oct 2. I can merge and publish it after that date at earliest.

I'm just submitting this PR because way too many people uses ReadLine and it's a trivial merge for the owner. I've moved on with lots of changes now on my own fork and added more commands to make it more GNU ReadLine compliant. I've published a package (still behind of the latest updates) under Loudenvier.ReadLine (https://www.nuget.org/packages/Loudenvier.ReadLine)

A curiosity: I see that you changed the code to use Allman indentation and I hate Allman formatting with a passion!!! :-) I don't like to loose vertical space in code, and with all the syntax highlighting we have today, a more concise code format is not less readable than Allman's (I think it's more readable as you can see more code on the screen without scrolling). I use Allman only for class and namespace declarations (in fact, I've moved on to file-scoped namespaces so not even them uses Allman anymore). But what I DO love in all of this is how people enjoy different indentation styles and there is not ONE style to rule them all!

Happy coding!

@Latency
Copy link

Latency commented Sep 26, 2024 via email

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

Successfully merging this pull request may close these issues.

2 participants