edit_demo(6)

NAME
edit_demo - demonstrate ToolTalk object oriented messaging

SYNOPSIS
cntl
edit

DESCRIPTION

The cntl and edit utilities are two related demo programs provided with the ToolTalk product. Both programs are compiled by copying the files in the directory /usr/dt/share/src/tooltalk/demo/edit_demo to a convenient spot and running make(1) in that directory. After compiling, run the cntl (for `control') utility. This will pop up an application with a single button and a text input field. Enter a filename in the text field and load it for editing by single clicking on the button. This will use ToolTalk to invoke the edit utility as another application. From there you can select text in the edit window, and click on the Make Object button on the panel of the edit popup. Then using the cntl program button you can use ToolTalk to highlight the object you just made in the other window. You can use ttsnoop(1) or tttrace(1) to monitor the contents of the ToolTalk messages sent by edit.

SEE ALSO
ttsnoop(1), ttsession(1).

DIAGNOSTICS
If you try and invoke cntl (or any ToolTalk application) and you get a message saying the application could not start ToolTalk, or ttsession, make sure that you have one of the environment variables DISPLAY or TT_SESSION set, and that ttsession is in your PATH, or that the TTSESSION_CMD environment variable indicates where the ttsession program resides. For more information on ttsession and the environment variables it uses, see the ttsession man page.