public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [MdeModulePkg/TerminalDxe] Why do we delay 2s for ESC being pressed?
@ 2017-11-08  7:04 Heyi Guo
  2017-11-08  7:24 ` Zeng, Star
  0 siblings, 1 reply; 14+ messages in thread
From: Heyi Guo @ 2017-11-08  7:04 UTC (permalink / raw)
  To: edk2-devel@lists.01.org; +Cc: Zeng, Star, Eric Dong

Hi folks,

We found ESC key responded fairly slow on serial port terminal, and we 
think it might be caused by the code in UnicodeToEfiKey in TerminalConIn.c:

     if (UnicodeChar == ESC) {
       TerminalDevice->InputState = INPUT_STATE_ESC;
     }

     if (UnicodeChar == CSI) {
       TerminalDevice->InputState = INPUT_STATE_CSI;
     }

     if (TerminalDevice->InputState != INPUT_STATE_DEFAULT) {
       Status = gBS->SetTimer(
                       TerminalDevice->TwoSecondTimeOut,
                       TimerRelative,
                       (UINT64)20000000
                       );
       ASSERT_EFI_ERROR (Status);
       continue;
     }

It seems we intentionally add 2 seconds delay for ESC key press. This 
provides not so good user experience when we press ESC to exit or cancel 
some operation.

We tried reducing this timeout value to 1 second, then the experience 
improved much and we didn't find any issue introduced.

What's the reason for this timeout value and is there any improvement?

Thanks and regards,

Heyi



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [MdeModulePkg/TerminalDxe] Why do we delay 2s for ESC being pressed?
  2017-11-08  7:04 [MdeModulePkg/TerminalDxe] Why do we delay 2s for ESC being pressed? Heyi Guo
@ 2017-11-08  7:24 ` Zeng, Star
  2017-11-08  7:55   ` Ni, Ruiyu
  0 siblings, 1 reply; 14+ messages in thread
From: Zeng, Star @ 2017-11-08  7:24 UTC (permalink / raw)
  To: Heyi Guo, edk2-devel@lists.01.org; +Cc: Ni, Ruiyu, Dong, Eric, Zeng, Star

Cc Terminal expert Ray to see if any comments on this.


Thanks,
Star
-----Original Message-----
From: Heyi Guo [mailto:heyi.guo@linaro.org] 
Sent: Wednesday, November 8, 2017 3:04 PM
To: edk2-devel@lists.01.org
Cc: Zeng, Star <star.zeng@intel.com>; Dong, Eric <eric.dong@intel.com>
Subject: [MdeModulePkg/TerminalDxe] Why do we delay 2s for ESC being pressed?

Hi folks,

We found ESC key responded fairly slow on serial port terminal, and we think it might be caused by the code in UnicodeToEfiKey in TerminalConIn.c:

     if (UnicodeChar == ESC) {
       TerminalDevice->InputState = INPUT_STATE_ESC;
     }

     if (UnicodeChar == CSI) {
       TerminalDevice->InputState = INPUT_STATE_CSI;
     }

     if (TerminalDevice->InputState != INPUT_STATE_DEFAULT) {
       Status = gBS->SetTimer(
                       TerminalDevice->TwoSecondTimeOut,
                       TimerRelative,
                       (UINT64)20000000
                       );
       ASSERT_EFI_ERROR (Status);
       continue;
     }

It seems we intentionally add 2 seconds delay for ESC key press. This provides not so good user experience when we press ESC to exit or cancel some operation.

We tried reducing this timeout value to 1 second, then the experience improved much and we didn't find any issue introduced.

What's the reason for this timeout value and is there any improvement?

Thanks and regards,

Heyi


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [MdeModulePkg/TerminalDxe] Why do we delay 2s for ESC being pressed?
  2017-11-08  7:24 ` Zeng, Star
@ 2017-11-08  7:55   ` Ni, Ruiyu
  2017-11-08  8:30     ` Heyi Guo
  0 siblings, 1 reply; 14+ messages in thread
From: Ni, Ruiyu @ 2017-11-08  7:55 UTC (permalink / raw)
  To: Zeng, Star, Heyi Guo, edk2-devel@lists.01.org; +Cc: Dong, Eric

Heyi,

If you check the comments below in TerminalConIn.c:
https://github.com/tianocore/edk2/blob/master/MdeModulePkg/Universal/Console/TerminalDxe/TerminalConIn.c#L1319

TerminalDxe driver needs to determine whether user wants to press ESC alone,
or press "ESC [ V" for F10 (PCANSI terminal).

So a 2 second timeout is added to wait additional keys.

Thanks/Ray

> -----Original Message-----
> From: Zeng, Star
> Sent: Wednesday, November 8, 2017 3:25 PM
> To: Heyi Guo <heyi.guo@linaro.org>; edk2-devel@lists.01.org
> Cc: Ni, Ruiyu <ruiyu.ni@intel.com>; Dong, Eric <eric.dong@intel.com>; Zeng,
> Star <star.zeng@intel.com>
> Subject: RE: [MdeModulePkg/TerminalDxe] Why do we delay 2s for ESC
> being pressed?
> 
> Cc Terminal expert Ray to see if any comments on this.
> 
> 
> Thanks,
> Star
> -----Original Message-----
> From: Heyi Guo [mailto:heyi.guo@linaro.org]
> Sent: Wednesday, November 8, 2017 3:04 PM
> To: edk2-devel@lists.01.org
> Cc: Zeng, Star <star.zeng@intel.com>; Dong, Eric <eric.dong@intel.com>
> Subject: [MdeModulePkg/TerminalDxe] Why do we delay 2s for ESC being
> pressed?
> 
> Hi folks,
> 
> We found ESC key responded fairly slow on serial port terminal, and we think
> it might be caused by the code in UnicodeToEfiKey in TerminalConIn.c:
> 
>      if (UnicodeChar == ESC) {
>        TerminalDevice->InputState = INPUT_STATE_ESC;
>      }
> 
>      if (UnicodeChar == CSI) {
>        TerminalDevice->InputState = INPUT_STATE_CSI;
>      }
> 
>      if (TerminalDevice->InputState != INPUT_STATE_DEFAULT) {
>        Status = gBS->SetTimer(
>                        TerminalDevice->TwoSecondTimeOut,
>                        TimerRelative,
>                        (UINT64)20000000
>                        );
>        ASSERT_EFI_ERROR (Status);
>        continue;
>      }
> 
> It seems we intentionally add 2 seconds delay for ESC key press. This
> provides not so good user experience when we press ESC to exit or cancel
> some operation.
> 
> We tried reducing this timeout value to 1 second, then the experience
> improved much and we didn't find any issue introduced.
> 
> What's the reason for this timeout value and is there any improvement?
> 
> Thanks and regards,
> 
> Heyi


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [MdeModulePkg/TerminalDxe] Why do we delay 2s for ESC being pressed?
  2017-11-08  7:55   ` Ni, Ruiyu
@ 2017-11-08  8:30     ` Heyi Guo
  2017-11-08  8:34       ` Ni, Ruiyu
  0 siblings, 1 reply; 14+ messages in thread
From: Heyi Guo @ 2017-11-08  8:30 UTC (permalink / raw)
  To: Ni, Ruiyu, Zeng, Star, edk2-devel@lists.01.org; +Cc: Dong, Eric



在 11/8/2017 3:55 PM, Ni, Ruiyu 写道:
> Heyi,
>
> If you check the comments below in TerminalConIn.c:
> https://github.com/tianocore/edk2/blob/master/MdeModulePkg/Universal/Console/TerminalDxe/TerminalConIn.c#L1319
>
> TerminalDxe driver needs to determine whether user wants to press ESC alone,
> or press "ESC [ V" for F10 (PCANSI terminal).
Do you mean F10 is not directly supported on some terminal tools so that 
we need to press 3 keys "ESC [ V" quickly and continuously to emulate F10?

Thanks,

Heyi
>
> So a 2 second timeout is added to wait additional keys.
>
> Thanks/Ray
>
>> -----Original Message-----
>> From: Zeng, Star
>> Sent: Wednesday, November 8, 2017 3:25 PM
>> To: Heyi Guo <heyi.guo@linaro.org>; edk2-devel@lists.01.org
>> Cc: Ni, Ruiyu <ruiyu.ni@intel.com>; Dong, Eric <eric.dong@intel.com>; Zeng,
>> Star <star.zeng@intel.com>
>> Subject: RE: [MdeModulePkg/TerminalDxe] Why do we delay 2s for ESC
>> being pressed?
>>
>> Cc Terminal expert Ray to see if any comments on this.
>>
>>
>> Thanks,
>> Star
>> -----Original Message-----
>> From: Heyi Guo [mailto:heyi.guo@linaro.org]
>> Sent: Wednesday, November 8, 2017 3:04 PM
>> To: edk2-devel@lists.01.org
>> Cc: Zeng, Star <star.zeng@intel.com>; Dong, Eric <eric.dong@intel.com>
>> Subject: [MdeModulePkg/TerminalDxe] Why do we delay 2s for ESC being
>> pressed?
>>
>> Hi folks,
>>
>> We found ESC key responded fairly slow on serial port terminal, and we think
>> it might be caused by the code in UnicodeToEfiKey in TerminalConIn.c:
>>
>>       if (UnicodeChar == ESC) {
>>         TerminalDevice->InputState = INPUT_STATE_ESC;
>>       }
>>
>>       if (UnicodeChar == CSI) {
>>         TerminalDevice->InputState = INPUT_STATE_CSI;
>>       }
>>
>>       if (TerminalDevice->InputState != INPUT_STATE_DEFAULT) {
>>         Status = gBS->SetTimer(
>>                         TerminalDevice->TwoSecondTimeOut,
>>                         TimerRelative,
>>                         (UINT64)20000000
>>                         );
>>         ASSERT_EFI_ERROR (Status);
>>         continue;
>>       }
>>
>> It seems we intentionally add 2 seconds delay for ESC key press. This
>> provides not so good user experience when we press ESC to exit or cancel
>> some operation.
>>
>> We tried reducing this timeout value to 1 second, then the experience
>> improved much and we didn't find any issue introduced.
>>
>> What's the reason for this timeout value and is there any improvement?
>>
>> Thanks and regards,
>>
>> Heyi



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [MdeModulePkg/TerminalDxe] Why do we delay 2s for ESC being pressed?
  2017-11-08  8:30     ` Heyi Guo
@ 2017-11-08  8:34       ` Ni, Ruiyu
  2017-11-08  8:44         ` Heyi Guo
  0 siblings, 1 reply; 14+ messages in thread
From: Ni, Ruiyu @ 2017-11-08  8:34 UTC (permalink / raw)
  To: Heyi Guo, Zeng, Star, edk2-devel@lists.01.org; +Cc: Dong, Eric

No.
Even a terminal tool can recognize F10, it still needs to translate it into "ESC [ V"
and send the three bytes to firmware.

Thanks/Ray

> -----Original Message-----
> From: Heyi Guo [mailto:heyi.guo@linaro.org]
> Sent: Wednesday, November 8, 2017 4:31 PM
> To: Ni, Ruiyu <ruiyu.ni@intel.com>; Zeng, Star <star.zeng@intel.com>; edk2-
> devel@lists.01.org
> Cc: Dong, Eric <eric.dong@intel.com>
> Subject: Re: [MdeModulePkg/TerminalDxe] Why do we delay 2s for ESC
> being pressed?
> 
> 
> 
> 在 11/8/2017 3:55 PM, Ni, Ruiyu 写道:
> > Heyi,
> >
> > If you check the comments below in TerminalConIn.c:
> >
> https://github.com/tianocore/edk2/blob/master/MdeModulePkg/Universal
> /C
> > onsole/TerminalDxe/TerminalConIn.c#L1319
> >
> > TerminalDxe driver needs to determine whether user wants to press ESC
> > alone, or press "ESC [ V" for F10 (PCANSI terminal).
> Do you mean F10 is not directly supported on some terminal tools so that we
> need to press 3 keys "ESC [ V" quickly and continuously to emulate F10?
> 
> Thanks,
> 
> Heyi
> >
> > So a 2 second timeout is added to wait additional keys.
> >
> > Thanks/Ray
> >
> >> -----Original Message-----
> >> From: Zeng, Star
> >> Sent: Wednesday, November 8, 2017 3:25 PM
> >> To: Heyi Guo <heyi.guo@linaro.org>; edk2-devel@lists.01.org
> >> Cc: Ni, Ruiyu <ruiyu.ni@intel.com>; Dong, Eric <eric.dong@intel.com>;
> >> Zeng, Star <star.zeng@intel.com>
> >> Subject: RE: [MdeModulePkg/TerminalDxe] Why do we delay 2s for ESC
> >> being pressed?
> >>
> >> Cc Terminal expert Ray to see if any comments on this.
> >>
> >>
> >> Thanks,
> >> Star
> >> -----Original Message-----
> >> From: Heyi Guo [mailto:heyi.guo@linaro.org]
> >> Sent: Wednesday, November 8, 2017 3:04 PM
> >> To: edk2-devel@lists.01.org
> >> Cc: Zeng, Star <star.zeng@intel.com>; Dong, Eric
> >> <eric.dong@intel.com>
> >> Subject: [MdeModulePkg/TerminalDxe] Why do we delay 2s for ESC
> being
> >> pressed?
> >>
> >> Hi folks,
> >>
> >> We found ESC key responded fairly slow on serial port terminal, and
> >> we think it might be caused by the code in UnicodeToEfiKey in
> TerminalConIn.c:
> >>
> >>       if (UnicodeChar == ESC) {
> >>         TerminalDevice->InputState = INPUT_STATE_ESC;
> >>       }
> >>
> >>       if (UnicodeChar == CSI) {
> >>         TerminalDevice->InputState = INPUT_STATE_CSI;
> >>       }
> >>
> >>       if (TerminalDevice->InputState != INPUT_STATE_DEFAULT) {
> >>         Status = gBS->SetTimer(
> >>                         TerminalDevice->TwoSecondTimeOut,
> >>                         TimerRelative,
> >>                         (UINT64)20000000
> >>                         );
> >>         ASSERT_EFI_ERROR (Status);
> >>         continue;
> >>       }
> >>
> >> It seems we intentionally add 2 seconds delay for ESC key press. This
> >> provides not so good user experience when we press ESC to exit or
> >> cancel some operation.
> >>
> >> We tried reducing this timeout value to 1 second, then the experience
> >> improved much and we didn't find any issue introduced.
> >>
> >> What's the reason for this timeout value and is there any improvement?
> >>
> >> Thanks and regards,
> >>
> >> Heyi


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [MdeModulePkg/TerminalDxe] Why do we delay 2s for ESC being pressed?
  2017-11-08  8:34       ` Ni, Ruiyu
@ 2017-11-08  8:44         ` Heyi Guo
  2017-11-08  8:46           ` Ni, Ruiyu
  2017-11-08  9:07           ` Gerd Hoffmann
  0 siblings, 2 replies; 14+ messages in thread
From: Heyi Guo @ 2017-11-08  8:44 UTC (permalink / raw)
  To: Ni, Ruiyu, Zeng, Star, edk2-devel@lists.01.org; +Cc: Dong, Eric



在 11/8/2017 4:34 PM, Ni, Ruiyu 写道:
> No.
> Even a terminal tool can recognize F10, it still needs to translate it into "ESC [ V"
> and send the three bytes to firmware.
Got it. But the 2 seconds timeout is not for this situation, right? If 
terminal tool could translate and send the key sequence, I think it can 
complete 3 bytes transfer in a very short time, isn't it? E.g. 9600 baud 
/ 8 = 1200 Bytes/s (ignore control bits).

So 2 seconds timeout is still for user to enter the sequence "ESC [ V" 
manually?

Thanks,

Heyi

>
> Thanks/Ray
>
>> -----Original Message-----
>> From: Heyi Guo [mailto:heyi.guo@linaro.org]
>> Sent: Wednesday, November 8, 2017 4:31 PM
>> To: Ni, Ruiyu <ruiyu.ni@intel.com>; Zeng, Star <star.zeng@intel.com>; edk2-
>> devel@lists.01.org
>> Cc: Dong, Eric <eric.dong@intel.com>
>> Subject: Re: [MdeModulePkg/TerminalDxe] Why do we delay 2s for ESC
>> being pressed?
>>
>>
>>
>> 在 11/8/2017 3:55 PM, Ni, Ruiyu 写道:
>>> Heyi,
>>>
>>> If you check the comments below in TerminalConIn.c:
>>>
>> https://github.com/tianocore/edk2/blob/master/MdeModulePkg/Universal
>> /C
>>> onsole/TerminalDxe/TerminalConIn.c#L1319
>>>
>>> TerminalDxe driver needs to determine whether user wants to press ESC
>>> alone, or press "ESC [ V" for F10 (PCANSI terminal).
>> Do you mean F10 is not directly supported on some terminal tools so that we
>> need to press 3 keys "ESC [ V" quickly and continuously to emulate F10?
>>
>> Thanks,
>>
>> Heyi
>>> So a 2 second timeout is added to wait additional keys.
>>>
>>> Thanks/Ray
>>>
>>>> -----Original Message-----
>>>> From: Zeng, Star
>>>> Sent: Wednesday, November 8, 2017 3:25 PM
>>>> To: Heyi Guo <heyi.guo@linaro.org>; edk2-devel@lists.01.org
>>>> Cc: Ni, Ruiyu <ruiyu.ni@intel.com>; Dong, Eric <eric.dong@intel.com>;
>>>> Zeng, Star <star.zeng@intel.com>
>>>> Subject: RE: [MdeModulePkg/TerminalDxe] Why do we delay 2s for ESC
>>>> being pressed?
>>>>
>>>> Cc Terminal expert Ray to see if any comments on this.
>>>>
>>>>
>>>> Thanks,
>>>> Star
>>>> -----Original Message-----
>>>> From: Heyi Guo [mailto:heyi.guo@linaro.org]
>>>> Sent: Wednesday, November 8, 2017 3:04 PM
>>>> To: edk2-devel@lists.01.org
>>>> Cc: Zeng, Star <star.zeng@intel.com>; Dong, Eric
>>>> <eric.dong@intel.com>
>>>> Subject: [MdeModulePkg/TerminalDxe] Why do we delay 2s for ESC
>> being
>>>> pressed?
>>>>
>>>> Hi folks,
>>>>
>>>> We found ESC key responded fairly slow on serial port terminal, and
>>>> we think it might be caused by the code in UnicodeToEfiKey in
>> TerminalConIn.c:
>>>>        if (UnicodeChar == ESC) {
>>>>          TerminalDevice->InputState = INPUT_STATE_ESC;
>>>>        }
>>>>
>>>>        if (UnicodeChar == CSI) {
>>>>          TerminalDevice->InputState = INPUT_STATE_CSI;
>>>>        }
>>>>
>>>>        if (TerminalDevice->InputState != INPUT_STATE_DEFAULT) {
>>>>          Status = gBS->SetTimer(
>>>>                          TerminalDevice->TwoSecondTimeOut,
>>>>                          TimerRelative,
>>>>                          (UINT64)20000000
>>>>                          );
>>>>          ASSERT_EFI_ERROR (Status);
>>>>          continue;
>>>>        }
>>>>
>>>> It seems we intentionally add 2 seconds delay for ESC key press. This
>>>> provides not so good user experience when we press ESC to exit or
>>>> cancel some operation.
>>>>
>>>> We tried reducing this timeout value to 1 second, then the experience
>>>> improved much and we didn't find any issue introduced.
>>>>
>>>> What's the reason for this timeout value and is there any improvement?
>>>>
>>>> Thanks and regards,
>>>>
>>>> Heyi



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [MdeModulePkg/TerminalDxe] Why do we delay 2s for ESC being pressed?
  2017-11-08  8:44         ` Heyi Guo
@ 2017-11-08  8:46           ` Ni, Ruiyu
  2017-11-08  8:51             ` Heyi Guo
  2017-11-08  9:07           ` Gerd Hoffmann
  1 sibling, 1 reply; 14+ messages in thread
From: Ni, Ruiyu @ 2017-11-08  8:46 UTC (permalink / raw)
  To: Heyi Guo, Zeng, Star, edk2-devel@lists.01.org; +Cc: Dong, Eric

Yes. 2 seconds is for some other terminal tools, that cannot do the F10 translation.

Thanks/Ray

> -----Original Message-----
> From: Heyi Guo [mailto:heyi.guo@linaro.org]
> Sent: Wednesday, November 8, 2017 4:45 PM
> To: Ni, Ruiyu <ruiyu.ni@intel.com>; Zeng, Star <star.zeng@intel.com>; edk2-
> devel@lists.01.org
> Cc: Dong, Eric <eric.dong@intel.com>
> Subject: Re: [MdeModulePkg/TerminalDxe] Why do we delay 2s for ESC
> being pressed?
> 
> 
> 
> 在 11/8/2017 4:34 PM, Ni, Ruiyu 写道:
> > No.
> > Even a terminal tool can recognize F10, it still needs to translate it into "ESC
> [ V"
> > and send the three bytes to firmware.
> Got it. But the 2 seconds timeout is not for this situation, right? If terminal
> tool could translate and send the key sequence, I think it can complete 3
> bytes transfer in a very short time, isn't it? E.g. 9600 baud / 8 = 1200 Bytes/s
> (ignore control bits).
> 
> So 2 seconds timeout is still for user to enter the sequence "ESC [ V"
> manually?
> 
> Thanks,
> 
> Heyi
> 
> >
> > Thanks/Ray
> >
> >> -----Original Message-----
> >> From: Heyi Guo [mailto:heyi.guo@linaro.org]
> >> Sent: Wednesday, November 8, 2017 4:31 PM
> >> To: Ni, Ruiyu <ruiyu.ni@intel.com>; Zeng, Star <star.zeng@intel.com>;
> >> edk2- devel@lists.01.org
> >> Cc: Dong, Eric <eric.dong@intel.com>
> >> Subject: Re: [MdeModulePkg/TerminalDxe] Why do we delay 2s for ESC
> >> being pressed?
> >>
> >>
> >>
> >> 在 11/8/2017 3:55 PM, Ni, Ruiyu 写道:
> >>> Heyi,
> >>>
> >>> If you check the comments below in TerminalConIn.c:
> >>>
> >>
> https://github.com/tianocore/edk2/blob/master/MdeModulePkg/Universal
> >> /C
> >>> onsole/TerminalDxe/TerminalConIn.c#L1319
> >>>
> >>> TerminalDxe driver needs to determine whether user wants to press
> >>> ESC alone, or press "ESC [ V" for F10 (PCANSI terminal).
> >> Do you mean F10 is not directly supported on some terminal tools so
> >> that we need to press 3 keys "ESC [ V" quickly and continuously to
> emulate F10?
> >>
> >> Thanks,
> >>
> >> Heyi
> >>> So a 2 second timeout is added to wait additional keys.
> >>>
> >>> Thanks/Ray
> >>>
> >>>> -----Original Message-----
> >>>> From: Zeng, Star
> >>>> Sent: Wednesday, November 8, 2017 3:25 PM
> >>>> To: Heyi Guo <heyi.guo@linaro.org>; edk2-devel@lists.01.org
> >>>> Cc: Ni, Ruiyu <ruiyu.ni@intel.com>; Dong, Eric
> >>>> <eric.dong@intel.com>; Zeng, Star <star.zeng@intel.com>
> >>>> Subject: RE: [MdeModulePkg/TerminalDxe] Why do we delay 2s for
> ESC
> >>>> being pressed?
> >>>>
> >>>> Cc Terminal expert Ray to see if any comments on this.
> >>>>
> >>>>
> >>>> Thanks,
> >>>> Star
> >>>> -----Original Message-----
> >>>> From: Heyi Guo [mailto:heyi.guo@linaro.org]
> >>>> Sent: Wednesday, November 8, 2017 3:04 PM
> >>>> To: edk2-devel@lists.01.org
> >>>> Cc: Zeng, Star <star.zeng@intel.com>; Dong, Eric
> >>>> <eric.dong@intel.com>
> >>>> Subject: [MdeModulePkg/TerminalDxe] Why do we delay 2s for ESC
> >> being
> >>>> pressed?
> >>>>
> >>>> Hi folks,
> >>>>
> >>>> We found ESC key responded fairly slow on serial port terminal, and
> >>>> we think it might be caused by the code in UnicodeToEfiKey in
> >> TerminalConIn.c:
> >>>>        if (UnicodeChar == ESC) {
> >>>>          TerminalDevice->InputState = INPUT_STATE_ESC;
> >>>>        }
> >>>>
> >>>>        if (UnicodeChar == CSI) {
> >>>>          TerminalDevice->InputState = INPUT_STATE_CSI;
> >>>>        }
> >>>>
> >>>>        if (TerminalDevice->InputState != INPUT_STATE_DEFAULT) {
> >>>>          Status = gBS->SetTimer(
> >>>>                          TerminalDevice->TwoSecondTimeOut,
> >>>>                          TimerRelative,
> >>>>                          (UINT64)20000000
> >>>>                          );
> >>>>          ASSERT_EFI_ERROR (Status);
> >>>>          continue;
> >>>>        }
> >>>>
> >>>> It seems we intentionally add 2 seconds delay for ESC key press.
> >>>> This provides not so good user experience when we press ESC to exit
> >>>> or cancel some operation.
> >>>>
> >>>> We tried reducing this timeout value to 1 second, then the
> >>>> experience improved much and we didn't find any issue introduced.
> >>>>
> >>>> What's the reason for this timeout value and is there any improvement?
> >>>>
> >>>> Thanks and regards,
> >>>>
> >>>> Heyi


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [MdeModulePkg/TerminalDxe] Why do we delay 2s for ESC being pressed?
  2017-11-08  8:46           ` Ni, Ruiyu
@ 2017-11-08  8:51             ` Heyi Guo
  0 siblings, 0 replies; 14+ messages in thread
From: Heyi Guo @ 2017-11-08  8:51 UTC (permalink / raw)
  To: Ni, Ruiyu, Zeng, Star, edk2-devel@lists.01.org; +Cc: Dong, Eric

That makes sense. Thanks very much for your explanation.

Regards,

Heyi


在 11/8/2017 4:46 PM, Ni, Ruiyu 写道:
> Yes. 2 seconds is for some other terminal tools, that cannot do the F10 translation.
>
> Thanks/Ray
>
>> -----Original Message-----
>> From: Heyi Guo [mailto:heyi.guo@linaro.org]
>> Sent: Wednesday, November 8, 2017 4:45 PM
>> To: Ni, Ruiyu <ruiyu.ni@intel.com>; Zeng, Star <star.zeng@intel.com>; edk2-
>> devel@lists.01.org
>> Cc: Dong, Eric <eric.dong@intel.com>
>> Subject: Re: [MdeModulePkg/TerminalDxe] Why do we delay 2s for ESC
>> being pressed?
>>
>>
>>
>> 在 11/8/2017 4:34 PM, Ni, Ruiyu 写道:
>>> No.
>>> Even a terminal tool can recognize F10, it still needs to translate it into "ESC
>> [ V"
>>> and send the three bytes to firmware.
>> Got it. But the 2 seconds timeout is not for this situation, right? If terminal
>> tool could translate and send the key sequence, I think it can complete 3
>> bytes transfer in a very short time, isn't it? E.g. 9600 baud / 8 = 1200 Bytes/s
>> (ignore control bits).
>>
>> So 2 seconds timeout is still for user to enter the sequence "ESC [ V"
>> manually?
>>
>> Thanks,
>>
>> Heyi
>>
>>> Thanks/Ray
>>>
>>>> -----Original Message-----
>>>> From: Heyi Guo [mailto:heyi.guo@linaro.org]
>>>> Sent: Wednesday, November 8, 2017 4:31 PM
>>>> To: Ni, Ruiyu <ruiyu.ni@intel.com>; Zeng, Star <star.zeng@intel.com>;
>>>> edk2- devel@lists.01.org
>>>> Cc: Dong, Eric <eric.dong@intel.com>
>>>> Subject: Re: [MdeModulePkg/TerminalDxe] Why do we delay 2s for ESC
>>>> being pressed?
>>>>
>>>>
>>>>
>>>> 在 11/8/2017 3:55 PM, Ni, Ruiyu 写道:
>>>>> Heyi,
>>>>>
>>>>> If you check the comments below in TerminalConIn.c:
>>>>>
>> https://github.com/tianocore/edk2/blob/master/MdeModulePkg/Universal
>>>> /C
>>>>> onsole/TerminalDxe/TerminalConIn.c#L1319
>>>>>
>>>>> TerminalDxe driver needs to determine whether user wants to press
>>>>> ESC alone, or press "ESC [ V" for F10 (PCANSI terminal).
>>>> Do you mean F10 is not directly supported on some terminal tools so
>>>> that we need to press 3 keys "ESC [ V" quickly and continuously to
>> emulate F10?
>>>> Thanks,
>>>>
>>>> Heyi
>>>>> So a 2 second timeout is added to wait additional keys.
>>>>>
>>>>> Thanks/Ray
>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Zeng, Star
>>>>>> Sent: Wednesday, November 8, 2017 3:25 PM
>>>>>> To: Heyi Guo <heyi.guo@linaro.org>; edk2-devel@lists.01.org
>>>>>> Cc: Ni, Ruiyu <ruiyu.ni@intel.com>; Dong, Eric
>>>>>> <eric.dong@intel.com>; Zeng, Star <star.zeng@intel.com>
>>>>>> Subject: RE: [MdeModulePkg/TerminalDxe] Why do we delay 2s for
>> ESC
>>>>>> being pressed?
>>>>>>
>>>>>> Cc Terminal expert Ray to see if any comments on this.
>>>>>>
>>>>>>
>>>>>> Thanks,
>>>>>> Star
>>>>>> -----Original Message-----
>>>>>> From: Heyi Guo [mailto:heyi.guo@linaro.org]
>>>>>> Sent: Wednesday, November 8, 2017 3:04 PM
>>>>>> To: edk2-devel@lists.01.org
>>>>>> Cc: Zeng, Star <star.zeng@intel.com>; Dong, Eric
>>>>>> <eric.dong@intel.com>
>>>>>> Subject: [MdeModulePkg/TerminalDxe] Why do we delay 2s for ESC
>>>> being
>>>>>> pressed?
>>>>>>
>>>>>> Hi folks,
>>>>>>
>>>>>> We found ESC key responded fairly slow on serial port terminal, and
>>>>>> we think it might be caused by the code in UnicodeToEfiKey in
>>>> TerminalConIn.c:
>>>>>>         if (UnicodeChar == ESC) {
>>>>>>           TerminalDevice->InputState = INPUT_STATE_ESC;
>>>>>>         }
>>>>>>
>>>>>>         if (UnicodeChar == CSI) {
>>>>>>           TerminalDevice->InputState = INPUT_STATE_CSI;
>>>>>>         }
>>>>>>
>>>>>>         if (TerminalDevice->InputState != INPUT_STATE_DEFAULT) {
>>>>>>           Status = gBS->SetTimer(
>>>>>>                           TerminalDevice->TwoSecondTimeOut,
>>>>>>                           TimerRelative,
>>>>>>                           (UINT64)20000000
>>>>>>                           );
>>>>>>           ASSERT_EFI_ERROR (Status);
>>>>>>           continue;
>>>>>>         }
>>>>>>
>>>>>> It seems we intentionally add 2 seconds delay for ESC key press.
>>>>>> This provides not so good user experience when we press ESC to exit
>>>>>> or cancel some operation.
>>>>>>
>>>>>> We tried reducing this timeout value to 1 second, then the
>>>>>> experience improved much and we didn't find any issue introduced.
>>>>>>
>>>>>> What's the reason for this timeout value and is there any improvement?
>>>>>>
>>>>>> Thanks and regards,
>>>>>>
>>>>>> Heyi



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [MdeModulePkg/TerminalDxe] Why do we delay 2s for ESC being pressed?
  2017-11-08  8:44         ` Heyi Guo
  2017-11-08  8:46           ` Ni, Ruiyu
@ 2017-11-08  9:07           ` Gerd Hoffmann
  2017-11-08 13:34             ` Heyi Guo
  1 sibling, 1 reply; 14+ messages in thread
From: Gerd Hoffmann @ 2017-11-08  9:07 UTC (permalink / raw)
  To: Heyi Guo; +Cc: Ni, Ruiyu, Zeng, Star, edk2-devel@lists.01.org, Dong, Eric

On Wed, Nov 08, 2017 at 04:44:37PM +0800, Heyi Guo wrote:
> 
> 
> 在 11/8/2017 4:34 PM, Ni, Ruiyu 写道:
> > No.
> > Even a terminal tool can recognize F10, it still needs to translate it into "ESC [ V"
> > and send the three bytes to firmware.
> Got it. But the 2 seconds timeout is not for this situation, right? If
> terminal tool could translate and send the key sequence, I think it can
> complete 3 bytes transfer in a very short time, isn't it? E.g. 9600 baud / 8
> = 1200 Bytes/s (ignore control bits).
> 
> So 2 seconds timeout is still for user to enter the sequence "ESC [ V"
> manually?

No.  Alot of software has this kind of delay because it is recommended
in some classic unix documentation to avoid mis-interpreting incomplete
terminal control sequences coming from slow terminals.

Where a "slow terminal" which actually would need such a long delay is a
physical terminal from the 70ies of the last century, or a virtual
terminal hooked up over a *really* slow network connection.

Reducing the delay from 2 seconds to roughly 0.2 seconds should be
pretty safe, things are not that slow any more these days :)

HTH,
  Gerd



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [MdeModulePkg/TerminalDxe] Why do we delay 2s for ESC being pressed?
  2017-11-08  9:07           ` Gerd Hoffmann
@ 2017-11-08 13:34             ` Heyi Guo
  2017-11-08 16:00               ` Brian J. Johnson
  0 siblings, 1 reply; 14+ messages in thread
From: Heyi Guo @ 2017-11-08 13:34 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: Ni, Ruiyu, Zeng, Star, edk2-devel@lists.01.org, Dong, Eric



On 11/08/2017 05:07 PM, Gerd Hoffmann wrote:
> On Wed, Nov 08, 2017 at 04:44:37PM +0800, Heyi Guo wrote:
>>
>> 在 11/8/2017 4:34 PM, Ni, Ruiyu 写道:
>>> No.
>>> Even a terminal tool can recognize F10, it still needs to translate it into "ESC [ V"
>>> and send the three bytes to firmware.
>> Got it. But the 2 seconds timeout is not for this situation, right? If
>> terminal tool could translate and send the key sequence, I think it can
>> complete 3 bytes transfer in a very short time, isn't it? E.g. 9600 baud / 8
>> = 1200 Bytes/s (ignore control bits).
>>
>> So 2 seconds timeout is still for user to enter the sequence "ESC [ V"
>> manually?
> No.  Alot of software has this kind of delay because it is recommended
> in some classic unix documentation to avoid mis-interpreting incomplete
> terminal control sequences coming from slow terminals.
>
> Where a "slow terminal" which actually would need such a long delay is a
> physical terminal from the 70ies of the last century, or a virtual
> terminal hooked up over a *really* slow network connection.
>
> Reducing the delay from 2 seconds to roughly 0.2 seconds should be
> pretty safe, things are not that slow any more these days :)
That will be great if we can make such change :)

Thanks,

Heyi

>
> HTH,
>    Gerd
>



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [MdeModulePkg/TerminalDxe] Why do we delay 2s for ESC being pressed?
  2017-11-08 13:34             ` Heyi Guo
@ 2017-11-08 16:00               ` Brian J. Johnson
  2017-11-24  7:21                 ` Heyi Guo
  0 siblings, 1 reply; 14+ messages in thread
From: Brian J. Johnson @ 2017-11-08 16:00 UTC (permalink / raw)
  To: Heyi Guo, Gerd Hoffmann
  Cc: Ni, Ruiyu, edk2-devel@lists.01.org, Dong, Eric, Zeng, Star

On 11/08/2017 07:34 AM, Heyi Guo wrote:
> 
> 
> On 11/08/2017 05:07 PM, Gerd Hoffmann wrote:
>> On Wed, Nov 08, 2017 at 04:44:37PM +0800, Heyi Guo wrote:
>>>
>>> 在 11/8/2017 4:34 PM, Ni, Ruiyu 写道:
>>>> No.
>>>> Even a terminal tool can recognize F10, it still needs to translate 
>>>> it into "ESC [ V"
>>>> and send the three bytes to firmware.
>>> Got it. But the 2 seconds timeout is not for this situation, right? If
>>> terminal tool could translate and send the key sequence, I think it can
>>> complete 3 bytes transfer in a very short time, isn't it? E.g. 9600 
>>> baud / 8
>>> = 1200 Bytes/s (ignore control bits).
>>>
>>> So 2 seconds timeout is still for user to enter the sequence "ESC [ V"
>>> manually?
>> No.  Alot of software has this kind of delay because it is recommended
>> in some classic unix documentation to avoid mis-interpreting incomplete
>> terminal control sequences coming from slow terminals.
>>
>> Where a "slow terminal" which actually would need such a long delay is a
>> physical terminal from the 70ies of the last century, or a virtual
>> terminal hooked up over a *really* slow network connection.
>>
>> Reducing the delay from 2 seconds to roughly 0.2 seconds should be
>> pretty safe, things are not that slow any more these days :)
> That will be great if we can make such change :)
> 

You'd be surprised how much delay you can get with a few layers of 
firewalls, VPNs, and cross-country (or intercontinental) WAN links. 
That's the advantage of serial:  you can tunnel it anywhere.

Here's a quick workaround:  if you start typing other text after the 
ESC, the terminal driver will see the new keystrokes and resolve the ESC 
immediately, without the delay.  For instance, at the shell prompt, type 
something, press ESC to clear the line, then just start typing new text 
without waiting for the timeout.  The line will be cleared and the new 
text will appear correctly, without delay.

On setup screens, I usually hit escape to return to the previous screen, 
then hit one of the arrow keys to cause the ESC to be processed without 
the timeout.  That works pretty well in practice.

I'd think a PCD to control this delay would be appropriate, though.
-- 
Brian J. Johnson
Enterprise X86 Lab

Hewlett Packard Enterprise



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [MdeModulePkg/TerminalDxe] Why do we delay 2s for ESC being pressed?
  2017-11-08 16:00               ` Brian J. Johnson
@ 2017-11-24  7:21                 ` Heyi Guo
  2017-11-28 17:55                   ` Brian J. Johnson
  0 siblings, 1 reply; 14+ messages in thread
From: Heyi Guo @ 2017-11-24  7:21 UTC (permalink / raw)
  To: Brian J. Johnson, Gerd Hoffmann
  Cc: Ni, Ruiyu, edk2-devel@lists.01.org, Dong, Eric, Zeng, Star

Hi Brian,


在 11/9/2017 12:00 AM, Brian J. Johnson 写道:
> On 11/08/2017 07:34 AM, Heyi Guo wrote:
>>
>>
>> On 11/08/2017 05:07 PM, Gerd Hoffmann wrote:
>>> On Wed, Nov 08, 2017 at 04:44:37PM +0800, Heyi Guo wrote:
>>>>
>>>> 在 11/8/2017 4:34 PM, Ni, Ruiyu 写道:
>>>>> No.
>>>>> Even a terminal tool can recognize F10, it still needs to 
>>>>> translate it into "ESC [ V"
>>>>> and send the three bytes to firmware.
>>>> Got it. But the 2 seconds timeout is not for this situation, right? If
>>>> terminal tool could translate and send the key sequence, I think it 
>>>> can
>>>> complete 3 bytes transfer in a very short time, isn't it? E.g. 9600 
>>>> baud / 8
>>>> = 1200 Bytes/s (ignore control bits).
>>>>
>>>> So 2 seconds timeout is still for user to enter the sequence "ESC [ V"
>>>> manually?
>>> No.  Alot of software has this kind of delay because it is recommended
>>> in some classic unix documentation to avoid mis-interpreting incomplete
>>> terminal control sequences coming from slow terminals.
>>>
>>> Where a "slow terminal" which actually would need such a long delay 
>>> is a
>>> physical terminal from the 70ies of the last century, or a virtual
>>> terminal hooked up over a *really* slow network connection.
>>>
>>> Reducing the delay from 2 seconds to roughly 0.2 seconds should be
>>> pretty safe, things are not that slow any more these days :)
>> That will be great if we can make such change :)
>>
>
> You'd be surprised how much delay you can get with a few layers of 
> firewalls, VPNs, and cross-country (or intercontinental) WAN links. 
> That's the advantage of serial:  you can tunnel it anywhere.
>
> Here's a quick workaround:  if you start typing other text after the 
> ESC, the terminal driver will see the new keystrokes and resolve the 
> ESC immediately, without the delay.  For instance, at the shell 
> prompt, type something, press ESC to clear the line, then just start 
> typing new text without waiting for the timeout. The line will be 
> cleared and the new text will appear correctly, without delay.
>
> On setup screens, I usually hit escape to return to the previous 
> screen, then hit one of the arrow keys to cause the ESC to be 
> processed without the timeout.  That works pretty well in practice.
>
> I'd think a PCD to control this delay would be appropriate, though.
Can we really use a PCD in TerminalDxe? I remember some experts in the 
community said that TerminalDxe is a pure UEFI driver; it can't use PCD 
since PCD is not defined in UEFI spec.

Thanks,

Gary (Heyi Guo)



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [MdeModulePkg/TerminalDxe] Why do we delay 2s for ESC being pressed?
  2017-11-24  7:21                 ` Heyi Guo
@ 2017-11-28 17:55                   ` Brian J. Johnson
  2017-11-29  4:18                     ` Andrew Fish
  0 siblings, 1 reply; 14+ messages in thread
From: Brian J. Johnson @ 2017-11-28 17:55 UTC (permalink / raw)
  To: Heyi Guo, Gerd Hoffmann
  Cc: Ni, Ruiyu, edk2-devel@lists.01.org, Dong, Eric, Zeng, Star

On 11/24/2017 01:21 AM, Heyi Guo wrote:
> Hi Brian,
> 
> 
> 在 11/9/2017 12:00 AM, Brian J. Johnson 写道:
>> On 11/08/2017 07:34 AM, Heyi Guo wrote:
>>>
>>>
>>> On 11/08/2017 05:07 PM, Gerd Hoffmann wrote:
>>>> On Wed, Nov 08, 2017 at 04:44:37PM +0800, Heyi Guo wrote:
>>>>>
>>>>> 在 11/8/2017 4:34 PM, Ni, Ruiyu 写道:
>>>>>> No.
>>>>>> Even a terminal tool can recognize F10, it still needs to 
>>>>>> translate it into "ESC [ V"
>>>>>> and send the three bytes to firmware.
>>>>> Got it. But the 2 seconds timeout is not for this situation, right? If
>>>>> terminal tool could translate and send the key sequence, I think it 
>>>>> can
>>>>> complete 3 bytes transfer in a very short time, isn't it? E.g. 9600 
>>>>> baud / 8
>>>>> = 1200 Bytes/s (ignore control bits).
>>>>>
>>>>> So 2 seconds timeout is still for user to enter the sequence "ESC [ V"
>>>>> manually?
>>>> No.  Alot of software has this kind of delay because it is recommended
>>>> in some classic unix documentation to avoid mis-interpreting incomplete
>>>> terminal control sequences coming from slow terminals.
>>>>
>>>> Where a "slow terminal" which actually would need such a long delay 
>>>> is a
>>>> physical terminal from the 70ies of the last century, or a virtual
>>>> terminal hooked up over a *really* slow network connection.
>>>>
>>>> Reducing the delay from 2 seconds to roughly 0.2 seconds should be
>>>> pretty safe, things are not that slow any more these days :)
>>> That will be great if we can make such change :)
>>>
>>
>> You'd be surprised how much delay you can get with a few layers of 
>> firewalls, VPNs, and cross-country (or intercontinental) WAN links. 
>> That's the advantage of serial:  you can tunnel it anywhere.
>>
>> Here's a quick workaround:  if you start typing other text after the 
>> ESC, the terminal driver will see the new keystrokes and resolve the 
>> ESC immediately, without the delay.  For instance, at the shell 
>> prompt, type something, press ESC to clear the line, then just start 
>> typing new text without waiting for the timeout. The line will be 
>> cleared and the new text will appear correctly, without delay.
>>
>> On setup screens, I usually hit escape to return to the previous 
>> screen, then hit one of the arrow keys to cause the ESC to be 
>> processed without the timeout.  That works pretty well in practice.
>>
>> I'd think a PCD to control this delay would be appropriate, though.
> 
> Can we really use a PCD in TerminalDxe? I remember some experts in the 
> community said that TerminalDxe is a pure UEFI driver; it can't use PCD 
> since PCD is not defined in UEFI spec.
> 
> Thanks,
> 
> Gary (Heyi Guo)
> 

Gary,

I'm not sure what the rules are for PCDs.  I'm just saying that if 
there's a good way to make the delay configurable for each platform, I 
wouldn't be against it.  2 seconds is a long time in some contexts.

-- 
Brian J. Johnson
Enterprise X86 Lab
Hewlett Packard Enterprise
brian.johnson@hpe.com



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [MdeModulePkg/TerminalDxe] Why do we delay 2s for ESC being pressed?
  2017-11-28 17:55                   ` Brian J. Johnson
@ 2017-11-29  4:18                     ` Andrew Fish
  0 siblings, 0 replies; 14+ messages in thread
From: Andrew Fish @ 2017-11-29  4:18 UTC (permalink / raw)
  To: Brian J. Johnson
  Cc: Heyi Guo, Gerd Hoffmann, Ni, Ruiyu, edk2-devel@lists.01.org,
	Dong, Eric, Zeng, Star

Big picture I think the goal is to not make the driver depend on the PCD protocol. A fixed at build PCD is just part of the build system, so not an issue.

Thanks,

Andrew Fish

> On Nov 28, 2017, at 9:55 AM, Brian J. Johnson <brian.johnson@hpe.com> wrote:
> 
> On 11/24/2017 01:21 AM, Heyi Guo wrote:
>> Hi Brian,
>> 在 11/9/2017 12:00 AM, Brian J. Johnson 写道:
>>> On 11/08/2017 07:34 AM, Heyi Guo wrote:
>>>> 
>>>> 
>>>> On 11/08/2017 05:07 PM, Gerd Hoffmann wrote:
>>>>> On Wed, Nov 08, 2017 at 04:44:37PM +0800, Heyi Guo wrote:
>>>>>> 
>>>>>> 在 11/8/2017 4:34 PM, Ni, Ruiyu 写道:
>>>>>>> No.
>>>>>>> Even a terminal tool can recognize F10, it still needs to translate it into "ESC [ V"
>>>>>>> and send the three bytes to firmware.
>>>>>> Got it. But the 2 seconds timeout is not for this situation, right? If
>>>>>> terminal tool could translate and send the key sequence, I think it can
>>>>>> complete 3 bytes transfer in a very short time, isn't it? E.g. 9600 baud / 8
>>>>>> = 1200 Bytes/s (ignore control bits).
>>>>>> 
>>>>>> So 2 seconds timeout is still for user to enter the sequence "ESC [ V"
>>>>>> manually?
>>>>> No.  Alot of software has this kind of delay because it is recommended
>>>>> in some classic unix documentation to avoid mis-interpreting incomplete
>>>>> terminal control sequences coming from slow terminals.
>>>>> 
>>>>> Where a "slow terminal" which actually would need such a long delay is a
>>>>> physical terminal from the 70ies of the last century, or a virtual
>>>>> terminal hooked up over a *really* slow network connection.
>>>>> 
>>>>> Reducing the delay from 2 seconds to roughly 0.2 seconds should be
>>>>> pretty safe, things are not that slow any more these days :)
>>>> That will be great if we can make such change :)
>>>> 
>>> 
>>> You'd be surprised how much delay you can get with a few layers of firewalls, VPNs, and cross-country (or intercontinental) WAN links. That's the advantage of serial:  you can tunnel it anywhere.
>>> 
>>> Here's a quick workaround:  if you start typing other text after the ESC, the terminal driver will see the new keystrokes and resolve the ESC immediately, without the delay.  For instance, at the shell prompt, type something, press ESC to clear the line, then just start typing new text without waiting for the timeout. The line will be cleared and the new text will appear correctly, without delay.
>>> 
>>> On setup screens, I usually hit escape to return to the previous screen, then hit one of the arrow keys to cause the ESC to be processed without the timeout.  That works pretty well in practice.
>>> 
>>> I'd think a PCD to control this delay would be appropriate, though.
>> Can we really use a PCD in TerminalDxe? I remember some experts in the community said that TerminalDxe is a pure UEFI driver; it can't use PCD since PCD is not defined in UEFI spec.
>> Thanks,
>> Gary (Heyi Guo)
> 
> Gary,
> 
> I'm not sure what the rules are for PCDs.  I'm just saying that if there's a good way to make the delay configurable for each platform, I wouldn't be against it.  2 seconds is a long time in some contexts.
> 
> -- 
> Brian J. Johnson
> Enterprise X86 Lab
> Hewlett Packard Enterprise
> brian.johnson@hpe.com <mailto:brian.johnson@hpe.com>
> 
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org <mailto:edk2-devel@lists.01.org>
> https://lists.01.org/mailman/listinfo/edk2-devel <https://lists.01.org/mailman/listinfo/edk2-devel>


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2017-11-29  4:13 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-08  7:04 [MdeModulePkg/TerminalDxe] Why do we delay 2s for ESC being pressed? Heyi Guo
2017-11-08  7:24 ` Zeng, Star
2017-11-08  7:55   ` Ni, Ruiyu
2017-11-08  8:30     ` Heyi Guo
2017-11-08  8:34       ` Ni, Ruiyu
2017-11-08  8:44         ` Heyi Guo
2017-11-08  8:46           ` Ni, Ruiyu
2017-11-08  8:51             ` Heyi Guo
2017-11-08  9:07           ` Gerd Hoffmann
2017-11-08 13:34             ` Heyi Guo
2017-11-08 16:00               ` Brian J. Johnson
2017-11-24  7:21                 ` Heyi Guo
2017-11-28 17:55                   ` Brian J. Johnson
2017-11-29  4:18                     ` Andrew Fish

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox