---
title: "cursor"
description: "The cursor namespace — the engine's Luau API reference for cursor."
section: "API Reference"
slug: "api-cursor"
canonical: "https://origozero.ai/docs/api-cursor"
updated: "2026-08-14T14:05:52.862602455+00:00"
tags: ["api", "reference"]
---

# cursor

The `cursor` namespace — 2 functions.

## cursor/clear {#cursor-clear}

```lua
cursor.clear()
```

Reset the cursor to its default appearance.

## cursor/set {#cursor-set}

```lua
cursor.set(spec) -> boolean
```

Set the cursor appearance from a spec table. Supports icon, color, and other cursor properties.

**Parameters**

- `spec` `{ icon?: string, color?: string, ... }` — Cursor specification table

**Returns** `boolean` — true if cursor was set
