<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Minh,<div class=""><br class=""></div><div class="">What APIs are you using to do Console IO?<br class=""><div class=""><br class=""></div><div class="">At the EFI layer you don't think of SimpleTxtInEx/SimpleTextIn and SimpleTxtOut as a single console device. You need to think of them as the driver providing the service. So for example SimpleTxtInEx/SimpleTextIn could be produced by the USB Keyboard driver, and SimpleTxtOut is produced by a driver that layers on GOP (Graphics Output Protocol). Thus you have to manage the work yourself. </div><div class=""><br class=""></div><div class="">If you look closely you might see that the primary console is a single device but this is the ConSplitter [1]. The ConSpliter is just managing policy as it makes a virtual ConIn (SimpleTxtInEx/SimpleTextIn) device out of all the actual ConIn devices, and sends output to all the ConOut (SimpleTxtOut). So for example your ConOut could go to Graphics and serial. Your input could come from a built-in keyboard and a USB keyboard. </div><div class=""><br class=""></div><div class="">So the short answer is you need to tell SimpleTxtOut to do the right thing. SimpleTxtOut can control the cursor position. If you are some higher level UEFI Shell API that some book keeping may be happening behind your back. </div><div class=""><br class=""></div><div class="">[1] <a href="https://github.com/tianocore/edk2/tree/master/MdeModulePkg/Universal/Console/ConSplitterDxe" class="">https://github.com/tianocore/edk2/tree/master/MdeModulePkg/Universal/Console/ConSplitterDxe</a></div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""></div><div class="">Andrew Fish<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Sep 25, 2019, at 10:27 AM, MinhQuan Tran <<a href="mailto:minhquan.tran@adlinktech.com" class="">minhquan.tran@adlinktech.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">Hi,<o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">I am new to Tianocore. Right now, I am trying to develop an UEFI app with interactive menu that would ask user to input values for each step. I managed to get the application to read the backspace keystroke. And when this occur, it would delete the character prior to cursor (one by one). Is there a protocol or function that allow the character delete on console?<o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">Thank you,<o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">Minh Quan<o:p class=""></o:p></div></div></div></blockquote></div><br class=""></div></div></body></html>

<div width="1" style="color:white;clear:both">_._,_._,_</div>
<hr>
Groups.io Links:<p>

You receive all messages sent to this group.


<p>

<a target="_blank" href="https://edk2.groups.io/g/devel/message/48054">View/Reply Online (#48054)</a> |


  


|


  
    <a target="_blank" href="https://groups.io/mt/34290869/1813853">Mute This Topic</a>
  

| <a href="https://edk2.groups.io/g/devel/post">New Topic</a><br>



<br>

<a href="https://edk2.groups.io/g/devel/editsub/1813853">Your Subscription</a> |
<a href="mailto:devel+owner@edk2.groups.io">Contact Group Owner</a> |

<a href="https://edk2.groups.io/g/devel/unsub">Unsubscribe</a>

 [edk2-devel-archive@redhat.com]<br>
<div width="1" style="color:white;clear:both">_._,_._,_</div>