# Grapheme Clusters and Terminal Emulators

DevFeed: [Grapheme Clusters and Terminal Emulators](<https://devfeed.tech/articles/grapheme-clusters-and-terminal-emulators-51442.md>)

Original publisher: [Read original article](<https://mitchellh.com/writing/grapheme-clusters-in-terminals>)

Author: What Can Program Authors Do Today

Published: 2023-10-02T00:00:00Z

Content type: article

Language: en

Sources: [Mitchell Hashimoto](<https://devfeed.tech/sources/mitchell-hashimoto.md>)

Topics: [Terminal](<https://devfeed.tech/topics/terminal.md>), [Emulator](<https://devfeed.tech/topics/emulator.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>)

Tags: [clustering](<https://devfeed.tech/tags/clustering.md>), [computer](<https://devfeed.tech/tags/computer.md>), [emulator](<https://devfeed.tech/tags/emulator.md>), [terminal](<https://devfeed.tech/tags/terminal.md>), [unicode](<https://devfeed.tech/tags/unicode.md>)

## AI overview

This article explains why terminal emulators and terminal programs can calculate inconsistent cursor spacing for grapheme clusters such as emoji. It describes the historical fixed-cell model, the limitations of byte and wide-character processing, and the role of Unicode graphemes.

## Source excerpt

Grapheme Clusters and Terminal Emulators Copy and paste "🧑🌾" in your terminal emulator. How many cells forward did your cursor move? Depending on your terminal emulator, it may have moved 2, 4, 5, or 6 cells1. Yikes. This blog post describes why this happens and how terminal emulator and program authors can achieve consistent spacing for all characters. Character Grids, Historically Terminals operate on a grid of fixed size cells.