<p>Ability to save the input key when using 'prompt' as a variable.<br>
With this you are able to use this in the script further on, for example:</p>

<p>prompt --set keycombo --timeout 5000 Press Ctrl-B for the menu... && goto keypress || goto exit<br>
:keypress<br>
isset ${keycombo} || set keycombo 0x2<br>
iseq ${keycombo} 0x1 && goto ctrla ||<br>
iseq ${keycombo} 0x2 && goto ctrlb ||<br>
iseq ${keycombo} 0x11 && goto ctrlq ||<br>
echo You pressed: ${keycombo}<br>
goto exit</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/ipxe/ipxe/pull/40'>https://github.com/ipxe/ipxe/pull/40</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Add set option to prompt to save the input key as a variable</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/ipxe/ipxe/pull/40/files#diff-0">src/image/script.c</a>
    (36)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/ipxe/ipxe/pull/40/files#diff-1">src/include/usr/prompt.h</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/ipxe/ipxe/pull/40/files#diff-2">src/usr/autoboot.c</a>
    (14)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/ipxe/ipxe/pull/40/files#diff-3">src/usr/prompt.c</a>
    (15)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/ipxe/ipxe/pull/40.patch'>https://github.com/ipxe/ipxe/pull/40.patch</a></li>
  <li><a href='https://github.com/ipxe/ipxe/pull/40.diff'>https://github.com/ipxe/ipxe/pull/40.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/ipxe/ipxe/pull/40">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AArTVMrJZf5qMS0nbnGNoHQ3GXQnV2Adks5pG0l1gaJpZM4Gj9OZ.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/ipxe/ipxe/pull/40"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>