<div dir="ltr"><span style="font-size:12.8px">Trace (I hope I spelled it correctly)</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Last night you asked me what my trick was, that I used discussing my Forex code, that controlled the placement of text on the screen.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Google VT100 escape sequences:</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">In that program I used 2 VT100 tricks and strictly formatted strings using printf.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Here is one:</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div><span style="white-space:pre-wrap">       </span># clear screen</div><div><span style="white-space:pre-wrap">   </span># vt100 clear screen ESC[2J</div><div><span style="white-space:pre-wrap">      </span>print chr(27) . '[2J';</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Another</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div><span style="white-space:pre-wrap">                </span># goto top of window</div><div><span style="white-space:pre-wrap">             </span># vt100 cursor home ESC[H</div><div><span style="white-space:pre-wrap">                </span>print chr(27) . '[H';</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Attached is the perl code involved.   Hope this helps.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">There are some escape sequences where you can place the cursor before printing text.  I did not use that sequence.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Investigate from <a href="http://metacpan.org/" target="_blank">metacpan.org</a>, Curses and related modules.   Curses is a layer of code that sits on top of the escape sequences your terminal supports and gives you precise placement of text.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Julian</div></div>