-
Notifications
You must be signed in to change notification settings - Fork 0
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
escape takes too long #788
Comments
@532910 unfortunately this cannot be "fixed" and it is not an issue. The delay in ESC is necessary to correctly recognize terminal escape sequences. Each escape sequence starts with an ESC code (0x1b) optionally followed by control characters (depending on the pressed key). E.g. arrow up is |
This is very annoying behavior! Before I understand that delay exist, I thought it just doesn't work at all. One more enhancement I see there is to add one more button for back action. Please reopen. |
115200 is less than 0.1 millisecond per byte, so I believe the delay could be safely set to 50ms that will be completely invisible for human |
Any idea if it comes from some specification, or simply that how it was set in this code? |
seems to be a pretty old upstream change: https://github.com/tianocore/edk2/blame/8c09d862bfb034e00b6b3bc37fe37243c866dd3a/MdeModulePkg/Universal/Console/TerminalDxe/TerminalConIn.c#L1359-L1369 |
No idea if it comes from specification, but typical AMI firmwares also have this 2s timeout for escape sequences. Seems pretty standard |
Dasharo ought to be better than AMI! |
Offtopic:
I wonder if this is a replacement for CTRL+ALT+DEL. |
Not a replacement but probably some equivalent for serial console. |
Maybe in a few more decades, when we reach the same level of experience, growth, partnerships, etc. Also, better in what aspects? Each solution has pros and cons. |
The comment was a bit exaggerated as a joke but: What I mean is that Dasharo might have the chance to be smoother and provide a better experience than AMI, so long as there isn't a technical reason that the delay needs to be a full 2 seconds. Even just halving it to one second might make it feel better to navigate the menus. |
@mkopec Do you think you can lower this timeout to e.g. 0.5s or 1s on a branch, and link to CI-produced binaries, so users in this thread eager to test can check it out? Of course, such a binary would not be tested on our side, and there is a risk of needing external recovery. |
Sure, I'll try to make a PR today I also wonder if the delay should be inversely proportional to baudrate, maybe we just need to wait 1-2 symbols instead of a fixed timeout |
Apparently tmux uses 500ms by default and zsh uses 400ms: https://www.johnhawthorn.com/2012/09/vi-escape-delays/ Some people set the delay to 0 and seem to have everything working correctly, but I wouldn't want to do that over serial probably. Let's go with 500ms for now |
Made a PR: Dasharo/coreboot#585 The build artifacts are available on https://github.com/Dasharo/coreboot/actions/runs/11742370832 Untested, so testers welcome :) |
Component
Dasharo firmware
Device
PC Engines APU6
Dasharo version
v0.9.0
Dasharo Tools Suite version
No response
Brief summary
escape takes too long
How reproducible
every time
How to reproduce
press escape
Expected behavior
escape must take the same time as enter or up/down arrows
Actual behavior
escape takes several seconds
Screenshots
No response
Additional context
No response
Solutions you've tried
No response
The text was updated successfully, but these errors were encountered: