Hubert Kindermann

Results 35 comments of Hubert Kindermann

There is probably no cross platform solution. Looks like it can be done on windows with https://docs.microsoft.com/en-us/windows/console/readconsoleinput, WINDOW_BUFFER_SIZE_EVENT and with WaitForSignalObject described here https://stackoverflow.com/questions/46658472/non-blocking-readconsoleinput. On other platforms I have no...

Not sure if this is possible to do in some reasonable way. We would need to render over already existing output and the question is how to restore it back....

The underlying issue of this is most likely #167.

The problem is in ```KeyPress.ReadRemainingKeys``` which is simply ```C# do { keys.Add(console.ReadKey(true)); } while (console.KeyAvailable); ``` @waf any idea how to make this faster? There's no 'bulk' read on ```Console```.

Keybindings for caret movement are not currently configurable. See: [KeyBindings.cs](https://github.com/waf/PrettyPrompt/blob/main/src/PrettyPrompt/KeyBindings.cs) Should it be used also for text selection (same as e.g. Shift+RightArrow)?

The correct way to do this is to extend [KeyBindings.cs](https://github.com/waf/PrettyPrompt/blob/main/src/PrettyPrompt/KeyBindings.cs) and use the new keyBinding at all places where Arrow keys are now explicitly used in PrettyPrompt code. At each...

Ok, now I see that a usable solution could be just to call ```C# Console.CursorTop = Console.CursorTop; ``` which brings a line with the cursor into the view.

Implementation should be case sensitive and change of casing should have some non-zero penalty but lower than changing to an entirely different letter. That would solve an issue when the...

Underscore syntax would interfere with C# discards (https://docs.microsoft.com/en-US/dotnet/csharp/fundamentals/functional/discards). That cannot be used. But I probably like the `Out[n]` syntax.

E.g. this code won't compile when `_` is redefined because of types mismatch: ```C# public void M(int _) { _ = DateTime.Now.ToString(); } ``` While this compiles successfully: ```C# public...