n class="stringliteral">&quot;\e[1J&quot;</span>);        <span class="comment">// Clear from cursor up</span></div>
<div class="line"> </div>
<div class="line">    <span class="comment">// Depth (Z-value) control</span></div>
<div class="line">    fprintf(fp, <span class="stringliteral">&quot;\e[5z&quot;</span>);        <span class="comment">// Set Z-value (depth) to 5</span></div>
<div class="line"> </div>
<div class="line">    <span class="comment">// Line clearing</span></div>
<div class="line">    fpri