Legacy Communication Made Easy
[ start | index | login ]
start > buttonbar.conf

buttonbar.conf

Created by leo. Last edited by leo, 2 years and 181 days ago. Viewed 918 times. #1
[edit] [rdf]
labels
attachments
There are two examples. The first shows all possible configuations and the second is a sidebar with a two-column button sidebar.

Example 1:

#
# Example for writing a button bar config file.
#
# The syntaxt for defining buttons, input fields and breaks is as follows:
#
# - defining a label:
# A labvel is defined by giving the keyword 'label' followed by the text
# of the label. If the label contains whitespace characters, enclode it in
# quote (") characters!
#
label                "Welcome to HOST"
# 
# - defining a button:
# A button is defined by giving the keyword 'button' followed by the text
# of the button and the command that should be sent when pressing the
# button. If the command contains whitespace characters, enclode it in
# quote (") characters!
button          Connect         "\\$connect(\\@host@,\\@port@)"
#
# - defining an input field:
# An input field is defined just like the button above, but it has one more
# parameter, the size of the input field. So you define it, by giving the
# keyword 'input' followed by the name of the input field (for reference)
# followed by the size of the input field and optionally a third parameter
# which is the initial text to be displayed in that field.
input           host    20      "tanis"
#
# We want to have the host field stretch as much as possible. The keyword
# below does accomplish that.
stretch
#
# And another input field.
input           port    4       "23"
#
# Now after the button and two input fields we define another button which
# will be shown last in the row. Order is significant for the order in 
# which the buttons and fields appear.
button          Disconnect      "\\$disconnect()"
#
# This button is only useful if the remote understands TELNET IAC BREAK.
# (like routers or other embedded thingies)
#
button          TelnetBreak     "\\$break()"
#
# we want an input line on the next row take the whole row (last break)
break
input           send    20      "\\@send@n"    "who"
break

Example 2:

#
# Example for a more wrapped button bar
#
button  F1      "Pressed F1 key!"
button  F2      "Pressed F2 key!"
break
button  F3      "Pressed F3 key!"
break
button  F4      "Pressed F4 key!"
button  F5      "Pressed F5 key!"
break
button  F6      "Pressed F6 key!"
break
button  F7      "Pressed F7 key!"
button  F8      "Pressed F8 key!"
break
button  F9      "Pressed F9 key!"
break
no comments | post comment
Telnet+SSH+Terminal
legacy communication tools for JAVA(tm)

javassh.org | Copyright 1996-2007 Matthias L. Jugel and Marcus Meißner

JAVA is a trademark or registered trademark of Sun Microsystems, Inc. in the United States and other countries.
The JTA - Telnet/SSH Authors (Matthias L. Jugel and Marcus Meißner) are independent of Sun Microsystems, Inc.