<div dir="ltr"><div><div><div><div><div><div><div><div><div><div>Hi everyone,<br><br></div>For one of my projects I am trying to replace current braille window with another text buffer. For this I am following steps below-<br><br></div>1. Create custom command to delete the window content. (called from brl_readCommand using enqueCommand)<br></div>   - calculate the current window length<br></div>   - get current cursor position<br></div>   - insertScreenKey(SCR_KEY_BACKSPACE) for characters on the left of cursor<br>   - insertScreenKey(SCR_KEY_DELETE) for characters on the right of cursor<br><br></div>2. Insert new text buffer characters one by one using enuqueCommand(BRL_CMD_BLK(PASSCHAR) | char)  (called from brl_readCommand using enqueCommand)<br></div>3. Create a custom command to set position(ses->winx) of new braille window to the to desired position (called from brl_readCommand using enqueCommand)</div>4. set cursor position using enqueueCommand(BRL_CMD_BLK(ROUTE) | cursor) (called from brl_readCommand using enqueCommand)<br><br></div>First two steps are working fine. but the last two don't work all the time.<br><br></div>Please suggest if I am doing it correctly. Or suggest if there is any better approach to this problem.<br><div><div><div><div><div><div><div><div><br><div><div><div><div><div><div><div><div><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div><div><span style="font-family:times new roman,serif">--<br>Thanks & Regards,<br>Vikash Kesarwani<br></span></div><span style="font-family:times new roman,serif">Lead Engineer - Software<br></span></div><span style="font-family:times new roman,serif">Kritikal Solutions Pvt. Ltd.<br></span></div><span style="font-family:times new roman,serif">Tel: +91 120 4048600</span><br></div></div></div></div></div>
</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>