-
Notifications
You must be signed in to change notification settings - Fork 136
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
Add readline library replacement for MSVC #1264
Add readline library replacement for MSVC #1264
Conversation
Nice one. This seems to work pretty well.
|
Actually it can be made to work, if we update the version to
|
I think this PR can be merged with the minor version update. @stefanrueger |
As for timeout without pressing any keys, yes this still happens but it takes more than 30minutes for me to get it happen. So it is not bad at all.
Debug log.
|
Thanks, I missed the recent change in term.c - just update the code. |
Actually, I think it is still broken. I think it is a bug in the ANSI API of Windows, which is probably only triggered by some Unicode to MBCS conversion. When you select |
Brilliant. Very happy about the progress. Code looks clean and solid (pity I cannot test). Thanks a lot @mariusgreuel for all the implementation branches and @mcuee for unfailing enthusiasm, testing and suggestions. So, on the next mergefest (once PR #1265 is under the hood) I merge this PR #1264 one (and ignore PR #1259) - then it looks like v7.1 is ready as can be... |
In this particular case, what you described is the behavior of git main. For this PR, it does return the whole "dump flash 0x3e00 0x40" in the command line. I just need to hit RETURN to execute it. Please refer to the screenshots in the previous comment. |
Using Windows batch file to test under Windows Terminal Powershell or CMD prompt.
The following batch file is not equivalent to the above shell script.
|
@mcuee Looks like you have either the long-sleep-in-pipe problem (if version is 5.0.0) or needing quit at the end of pipe/file input (if version is 5.0.2). I believe everyone is better off if they don't need quit at the end of pipe/file. Having a slow pipe input is somehow rare and a bit contrived (I think!). What's your preference? My suggestion is to change This line to compare |
Hmm, 5.02 works fine now. It even works with long sleep. No need to have the explicit exit command either. So NO NEED to change this PR. It can be merged as it is. Sorry but just wondering which test result makes you think the other way? I can edit the test results to avoid the confusion. The only issue is the occasional time out, usually after long time of idle, which we can live with. The last comment is to seek help to see if I can test long sleep under PowerShell or CMD prompt. I can only test under MSYS2 Bash prompt now -- the test result for long sleep is PASS. |
Here is an alternative to readline using standard Windows mechanisms. It does not do any of the readline magic, however, it does keep the bootloader alive.
@mcuee Can you give this one a shot, please?
BTW, I am away for today.