FUNCTION::ANSI\_CLEAR(3stap) Utility functions for using an FUNCTION::ANSI\_CLEAR(3stap)

# [NAME](#NAME)

function::ansi\_clear\_screen - Move cursor to top left and clear screen.

# [SYNOPSIS](#SYNOPSIS)

```


    ansi_clear_screen()
```

# [ARGUMENTS](#ARGUMENTS)

None

# [DESCRIPTION](#DESCRIPTION)

Sends ansi code for moving cursor to top left and then the ansi code for clearing the screen from the cursor position to the end.

# [SEE ALSO0](#SEE_ALSO0)

[*tapset::ansi*(3stap)](/man/enterprise-packages/systemtap/tapset::ansi.3stap)

September 2026 SystemTap Tapset Reference Ver

---

Document: function::ansi_clear_screen(3stap) from systemtap 5.6-r0 (Chainguard OS)
Source: https://sourceware.org/git/systemtap.git
