FUNCTION::TEXT\_STR(3stap) A collection of standard strin FUNCTION::TEXT\_STR(3stap)

# [NAME](#NAME)

function::text\_str - Escape any non-printable chars in a string

# [SYNOPSIS](#SYNOPSIS)

```


    text_str:string(input:string)
```

# [ARGUMENTS](#ARGUMENTS)

*input*

the string to escape

# [DESCRIPTION](#DESCRIPTION)

This function accepts a string argument, and any ASCII characters that are not printable are replaced by the corresponding escape sequence in the returned string.

# [SEE ALSO0](#SEE_ALSO0)

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

September 2026 SystemTap Tapset Reference Ver

---

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