From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.43; helo=mga05.intel.com; envelope-from=ruiyu.ni@intel.com; receiver=edk2-devel@lists.01.org Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 5173C20355233 for ; Wed, 8 Nov 2017 00:42:33 -0800 (PST) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP; 08 Nov 2017 00:46:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,363,1505804400"; d="scan'208";a="173076904" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga005.fm.intel.com with ESMTP; 08 Nov 2017 00:46:32 -0800 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 8 Nov 2017 00:46:31 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.152]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.213]) with mapi id 14.03.0319.002; Wed, 8 Nov 2017 16:46:30 +0800 From: "Ni, Ruiyu" To: Heyi Guo , "Zeng, Star" , "edk2-devel@lists.01.org" CC: "Dong, Eric" Thread-Topic: [MdeModulePkg/TerminalDxe] Why do we delay 2s for ESC being pressed? Thread-Index: AQHTWGKv3oEYUhJRGkumgc3ZBU9EUKMKGuMQ//+F7gCAAIbQ0P//fRuAgACGhKA= Date: Wed, 8 Nov 2017 08:46:30 +0000 Message-ID: <734D49CCEBEEF84792F5B80ED585239D5BAB6F90@SHSMSX104.ccr.corp.intel.com> References: <1958e840-f0fe-6d8e-44d1-03ff9c9dde7b@linaro.org> <0C09AFA07DD0434D9E2A0C6AEB0483103B9B3162@shsmsx102.ccr.corp.intel.com> <734D49CCEBEEF84792F5B80ED585239D5BAB6CB0@SHSMSX104.ccr.corp.intel.com> <734D49CCEBEEF84792F5B80ED585239D5BAB6F41@SHSMSX104.ccr.corp.intel.com> In-Reply-To: Accept-Language: en-US, zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [MdeModulePkg/TerminalDxe] Why do we delay 2s for ESC being pressed? X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Nov 2017 08:42:33 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 WWVzLiAyIHNlY29uZHMgaXMgZm9yIHNvbWUgb3RoZXIgdGVybWluYWwgdG9vbHMsIHRoYXQgY2Fu bm90IGRvIHRoZSBGMTAgdHJhbnNsYXRpb24uDQoNClRoYW5rcy9SYXkNCg0KPiAtLS0tLU9yaWdp bmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBIZXlpIEd1byBbbWFpbHRvOmhleWkuZ3VvQGxpbmFy by5vcmddDQo+IFNlbnQ6IFdlZG5lc2RheSwgTm92ZW1iZXIgOCwgMjAxNyA0OjQ1IFBNDQo+IFRv OiBOaSwgUnVpeXUgPHJ1aXl1Lm5pQGludGVsLmNvbT47IFplbmcsIFN0YXIgPHN0YXIuemVuZ0Bp bnRlbC5jb20+OyBlZGsyLQ0KPiBkZXZlbEBsaXN0cy4wMS5vcmcNCj4gQ2M6IERvbmcsIEVyaWMg PGVyaWMuZG9uZ0BpbnRlbC5jb20+DQo+IFN1YmplY3Q6IFJlOiBbTWRlTW9kdWxlUGtnL1Rlcm1p bmFsRHhlXSBXaHkgZG8gd2UgZGVsYXkgMnMgZm9yIEVTQw0KPiBiZWluZyBwcmVzc2VkPw0KPiAN Cj4gDQo+IA0KPiDlnK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