Changes

Jump to navigation Jump to search
1,503 bytes added ,  10:27, 15 December 2012
Created page with "{{Reference |name={{subst:SUBPAGENAME}} |attributes= }} == Syntax == <table cellspacing="4" cellpadding="2" class="cmd"> <tr> <td colspan="2" class="cmd..."
{{Reference
|name=grabbufferdata
|attributes=
}}

== [[Help:Reference|Syntax]] ==
<table cellspacing="4" cellpadding="2" class="cmd">
<tr>
<td colspan="2" class="cmd">\grabbufferdata<!--
--><span class="first">[...]</span><!--
--><span class="second">[...]</span><!--
--><span class="third">[...]</span><!--
--></td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[...]</td>
<td>''name of the buffer to store the text''</td>
</tr>
<tr valign="top" class="second">
<td class="cmd">[...]</td>
<td>''string where the buffer contents start''</td>
</tr>
<tr valign="top" class="third">
<td class="cmd">[...]</td>
<td>''string where the buffer contents end''</td>
</tr>
</table>

== Description ==
This is a slightly low-level command to grab user input and store it in a buffer. It is different from {{cmd|startbuffer|[X]..\stopbuffer}} because it allows one to use custom start and end strings, instead of \startbuffer...\stopbuffer

== Example ==
<context source=yes mode=mkiv>
\grabbufferdata[mybuffer][thisisthestart][thisistheend]
\thisisthestart
My friend, you would not tell with such high zest
To children ardent for some desparate glory,
The old Lie: Dulce et decorum est
Pro patria mori.
\thisistheend

\typebuffer[mybuffer]
</context>

== See also ==

* {{cmd|getbuffer}}
* {{src|buff-ini.mkiv}}

== Help from ConTeXt-Mailinglist/Forum ==
All issues with:
{{Forum|grabbufferdata}}

[[Category:Command/Buffers|grabbufferdata]]

Navigation menu