Branch: Tag:

2017-11-23

2017-11-23 10:41:49 by Chris Angelico <rosuav@gmail.com>

Add history pop function to Readline for Hilfe's benefit

2975:   <hr />   <dl class='group--doc'>   <dt class='head--type'><span class='homogen--type'>Method</span> + <span class='homogen--name'><b>pop</b></span> + </dt> + <dd><p><code><code class='datatype'>bool</code> <b><span class='method'>pop</span>(</b><code class='datatype'>string</code>|<code class='datatype'>void</code> <code class='argument'>text</code><b>)</b></code></p></dd> +  + <dt class='head--doc'>Description</dt> + <dd class='body--doc'><p>Pop the last string off the history, discarding it. +  If text is provided, will only pop that string. +  Returns 1 if a string was removed, 0 if not.</p> + </dd></dl> +  +  + <hr /> + <dl class='group--doc'> + <dt class='head--type'><span class='homogen--type'>Method</span>   <span class='homogen--name'><b>set_max_history</b></span>   </dt>   <dd><p><code><code class='datatype'>void</code> <b><span class='method'>set_max_history</span>(</b><code class='datatype'>int</code> <code class='argument'>maxhist</code><b>)</b></code></p></dd>