spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / mods / diff / hooks / views / layout / cell-width / wide-ranges / wide-ranges.ts
20 lines · 512 BRaw
1/**
2 * Code point ranges a terminal draws two cells wide (Hangul Jamo, CJK,
3 * fullwidth forms, emoji); an approximation of the engine's string width.
4 */
5export const WIDE_RANGES: readonly (readonly [number, number])[] = [
6 [0x1100, 0x115f],
7 [0x2e80, 0x303e],
8 [0x3041, 0x33ff],
9 [0x3400, 0x4dbf],
10 [0x4e00, 0x9fff],
11 [0xa000, 0xa4cf],
12 [0xac00, 0xd7a3],
13 [0xf900, 0xfaff],
14 [0xfe30, 0xfe4f],
15 [0xff00, 0xff60],
16 [0xffe0, 0xffe6],
17 [0x1f300, 0x1f64f],
18 [0x1f900, 0x1f9ff],
19 [0x20000, 0x3fffd],
20]