<rdf:RDF
    xmlns:s='http://snipsnap.org/rdf/snip-schema#'
    xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
    xml:base='http://javatelnet.org/rdf'>
    <s:Snip rdf:ID='buttonbar.conf'
         s:name='buttonbar.conf'
         s:cUser='leo'
         s:oUser=''
         s:mUser='leo'>
        <s:content>There are two examples. The first shows all possible configuations and the second is a sidebar with a two-column button sidebar.&#xA;&#xA;__Example 1:__&#xA;{code}&#xA;#&#xA;# Example for writing a button bar config file.&#xA;#&#xA;# The syntaxt for defining buttons, input fields and breaks is as follows:&#xA;#&#xA;# - defining a label:&#xA;# A labvel is defined by giving the keyword &apos;label&apos; followed by the text&#xA;# of the label. If the label contains whitespace characters, enclode it in&#xA;# quote (\&quot;) characters!&#xA;#&#xA;label                &quot;Welcome to HOST&quot;&#xA;# &#xA;# - defining a button:&#xA;# A button is defined by giving the keyword &apos;button&apos; followed by the text&#xA;# of the button and the command that should be sent when pressing the&#xA;# button. If the command contains whitespace characters, enclode it in&#xA;# quote (\&quot;) characters!&#xA;button          Connect         &quot;\\\\\\$connect(\\\\\\@host@,\\\\\\@port@)&quot;&#xA;#&#xA;# - defining an input field:&#xA;# An input field is defined just like the button above, but it has one more&#xA;# parameter, the size of the input field. So you define it, by giving the&#xA;# keyword &apos;input&apos; followed by the name of the input field (for reference)&#xA;# followed by the size of the input field and optionally a third parameter&#xA;# which is the initial text to be displayed in that field.&#xA;input           host    20      &quot;tanis&quot;&#xA;#&#xA;# We want to have the host field stretch as much as possible. The keyword&#xA;# below does accomplish that.&#xA;stretch&#xA;#&#xA;# And another input field.&#xA;input           port    4       &quot;23&quot;&#xA;#&#xA;# Now after the button and two input fields we define another button which&#xA;# will be shown last in the row. Order is significant for the order in &#xA;# which the buttons and fields appear.&#xA;button          Disconnect      &quot;\\\\\\$disconnect()&quot;&#xA;#&#xA;# This button is only useful if the remote understands TELNET IAC BREAK.&#xA;# (like routers or other embedded thingies)&#xA;#&#xA;button          TelnetBreak     &quot;\\\\\\$break()&quot;&#xA;#&#xA;# we want an input line on the next row take the whole row (last break)&#xA;break&#xA;input           send    20      &quot;\\\\\\@send@\n&quot;    &quot;who&quot;&#xA;break&#xA;{code}&#xA;&#xA;__Example 2:__&#xA;{code}&#xA;#&#xA;# Example for a more wrapped button bar&#xA;#&#xA;button  F1      &quot;Pressed F1 key!&quot;&#xA;button  F2      &quot;Pressed F2 key!&quot;&#xA;break&#xA;button  F3      &quot;Pressed F3 key!&quot;&#xA;break&#xA;button  F4      &quot;Pressed F4 key!&quot;&#xA;button  F5      &quot;Pressed F5 key!&quot;&#xA;break&#xA;button  F6      &quot;Pressed F6 key!&quot;&#xA;break&#xA;button  F7      &quot;Pressed F7 key!&quot;&#xA;button  F8      &quot;Pressed F8 key!&quot;&#xA;break&#xA;button  F9      &quot;Pressed F9 key!&quot;&#xA;break&#xA;{code}</s:content>
        <s:mTime>2005-11-10 14:23:58.182</s:mTime>
        <s:cTime>2005-11-10 14:23:58.182</s:cTime>
        <s:comments
             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
        <s:snipLinks>
            <rdf:Bag>
                <rdf:li rdf:resource='http://javatelnet.org/rdf#Plugin ButtonBar'/>
                <rdf:li rdf:resource='#snipsnap-index'/>
                <rdf:li rdf:resource='#snipsnap-search'/>
                <rdf:li rdf:resource='#leo'/>
                <rdf:li rdf:resource='http://javatelnet.org/rdf#Plugin buttonBar'/>
            </rdf:Bag>
        </s:snipLinks>
        <s:attachments
             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
    </s:Snip>
</rdf:RDF>
