# (grtext \[flag text\]) [GstarCAD 2011](../../../Index.md) → [Developer Reference](../../%28Developer%20Reference%29.md) → [AutoLISP Reference](../%28AutoLISP%20Reference%29.md) → [LISP Functions](%28LISP%20Functions%29.md) <a id="200"></a> ## (grtext \[flag text\]) --- Write text on the status line. --- This function allows you to put text in the status line or the coordinate status area. The *flag* determines where the text is placed: | Flag | Meaning | | --- | --- | | -1 | Status Line | | -2 | Coordinate Status Line | ![](../../../assets/ICAD_LSP/Art/sc_grtext1.gif) The *text* is a string. If the string is too long for the space provided, it is truncated. If coordinate status is turned on (the **Coords** command is set to 1 or 2), the text previously entered into this field is overwritten with new coordinates as soon as the mouse is moved. You can use the **grtext** function without any arguments to remove the text from the coordinate status line field when COORDS is turned off or from the status line field. ### Examples | Code | Returns | | --- | --- | | (**grtext** -2 "This is mode -2") | This is mode -2 *Places text in coordinate area.* | | (**grtext**) | nil *Clears text from status line* | **Tell me about...** [(grdraw point1 point2 color \[highlight\])](%28grdraw%20point1%20point2%20color%20-highlight-%29.md) [(grvecs vector-lists \[trans\])](IDR_LISP_B201.md) [LISP Compatibility](../LISP%20Compatibility.md) [Programming Overview of LISP (LISt Processing) Language](../Programming%20Overview%20of%20LISP%20%28LISt%20Processing%29%20Language.md) <a id="holding"></a> ## Other versions with matching text [GstarCAD 2012](../../../../2012/Developer%20Reference/AutoLISP%20Reference/LISP%20Functions/%28grtext%20-flag%20text-%29.md)