In this example, a debugger uses an editor to display the source around a breakpoint through ToolTalk messages.
The editor has the following Handle pattern in its ptype:
(HandlerPtype: TextEditor; Op: ShowLine; Scope: TT_SESSION; Session: my_session_id; File: /home/butterfly/astrid/src/ebe.c)
When the debugger reaches a breakpoint, it sends a message
that contains the op (ShowLine), argument (the line number), file (the file
name), session (the current session id), and scope (
The ToolTalk service matches this message against all registered patterns and finds the pattern registered by the editor.
The ToolTalk service delivers the message to the editor.
The editor then scrolls to the line indicated in the argument.