# (prompt string)
[GstarCAD 2011](../../../Index.md) → [Developer Reference](../../%28Developer%20Reference%29.md) → [AutoLISP Reference](../%28AutoLISP%20Reference%29.md) → [LISP Functions](%28LISP%20Functions%29.md)
<a id="246"></a>
## (prompt string)
---
Print the message on the command line.
---
This function prints the *string* to the command line and the Prompt History window. The **prompt** function acts upon control characters.
### Examples
| Code | Returns |
| --- | --- |
| (**prompt** "56") | 56nil |
| (**prompt** "This is text.\\n") | This is text. nil |
**NOTE** The difference between the **prompt** function and LISP's other print-related functions (for example, [princ](%28princ%20-expression%20-file-descriptor-%29.md), [print](%28print%20-expression%20-file-descriptor-%29.md), and [prin1](%28prin1%20-expression%20-file-descriptor-%29.md)) is that **prompt** only prints to the Prompt History window and not to a file.
**Tell me about...**
[(terpri)](%28terpri%29.md)
[(write-line string \[file-descriptor\])](%28write-line%20string%20-file-descriptor-%29.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/%28prompt%20string%29.md)