buttonx Command

Related Topics:

unbutton Command Adding a Button to the Button Editor

The buttonx command defines a new button for the Sun WorkShopTM Custom Buttons window. This command is silently ignored unless dbx is running under the control of Sun WorkShop.

Syntax

buttonx selection-type name command

where:

selection-type is:
ignore Ignore the current Sun WorkShop selection.
literal Take the current selection literally and append it to the command.
lineno Append the file name and line number of the curren tselection to the command.

name is the name of the button. The name may contain spaces in which case you have to enclose the name in quotation marks. The name is used as the key searched by the unbutton command.

command is the command to be executed when the button is clicked. It may bes any dbx command, ksh function or even a mini-script. It should be enclosed in quotaion marks if it is more than one word.