---
name: "function::ansi_clear_screen"
section: "3stap"
platform: "linux"
package: "systemtap-doc"
version: "5.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/function::ansi_clear_screen"
---

# function::ansi\_clear\_screen(3stap)

Move cursor to top left and clear screen.

## NAME

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

## SYNOPSIS

```
    ansi_clear_screen()
```

## ARGUMENTS

None

## 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

[*tapset::ansi*(3stap)](/tapset::ansi/3stap.md)
