# P_anchor
## Syntax:
**@anchor({text},{command},[{tooltip}])**
## Use Case:
Creates a clickable, interactive text link in the terminal using the MXP standard format. When the user clicks the rendered link, the `{command}` string is executed by the script engine. The link will be rendered with the preferred "Hyperlink Color" defined in the Terminal Options, unless overridden by an explicit ANSI color tag inside the text.
## Arguments:
- **text**: The text to display in the terminal. You can include @ansicolor() procedures inside here to override the default link color.
- **command**: The script command to execute when the link is clicked (e.g. "go north", "/echo Found it!").
- **tooltip**: (Optional) The hint or tooltip to display when hovering over the link with the mouse. If omitted, the command string is used as the tooltip.
## Examples:
1. **/echo You see a @anchor(shiny red apple,get apple,Take the shiny red apple) on the floor.**
2. **/showme Click @anchor(@ansicolor(255,0,0)HERE,kill dragon,Attack!) to begin the battle.**
## See Also:
@ansicolor, @ansibold
