contour

Tested Software version 0.7.1-master-9f0850ce on Linux. The homepage URL of this terminal is https://contour-terminal.org/. Full results available at ucs-detect repository path data/contour.yaml.

Score Breakdown

Detailed breakdown of how scores are calculated for contour:

#

Score Type

Raw Score

Final Scaled Score

1

WIDE

100.00%

100.0%

2

NARROW

100.00%

100.0%

3

ZWJ

100.00%

100.0%

4

LANG

100.00%

100.0%

5

VS16

100.00%

100.0%

6

VS15

100.00%

(excluded)

7

SRI

100.00%

100.0%

8

SFZ

100.00%

100.0%

9

RI

100.00%

100.0%

10

FEAT

94.44%

94.4%

11

Graphics

100%

100.0%

12

Resources

51.0%

51.0%

Score Comparison Plot:

The following plot shows how this terminal’s scores compare to all other terminals tested.

../_images/contour_scores_scaled.png

Scaled scores comparison across all metrics (normalized 0-100%)

Final Scaled Score Calculation:

  • Raw Final Score: 99.32% (weighted average: WIDE + NARROW + ZWJ + LANG + VS16 + 0.33 * SRI + 0.33 * SFZ + RI + CAP + 0.5 * GFX) the categorized ‘average’ absolute support level of this terminal.

    Note

    RSC (Resources) is a composite CPU, memory, and runtime score, displayed for comparison but excluded from the final score FEAT (Features) is the fraction of notable features supported. GFX (Graphics) scores 100% for modern protocols (iTerm2, Kitty), 50% for legacy only (Sixel, ReGIS), 0% for none.

  • Final Scaled Score: 98.9% (normalized across all terminals tested). Final Scaled scores are normalized (0-100%) relative to all terminals tested

WIDE Score Details:

Wide character support calculation:

  • Total successful contested codepoints: 506

  • Total contested codepoints tested: 506

  • Formula: 506 / 506

  • Result: 100.00%

NARROW Score Details:

Narrow character support calculation:

  • Total successful contested codepoints: 5595

  • Total contested codepoints tested: 5595

  • Formula: 5595 / 5595

  • Result: 100.00%

ZWJ Score Details:

Emoji ZWJ (Zero-Width Joiner) support calculation:

  • Total successful sequences: 1445

  • Total sequences tested: 1445

  • Formula: 1445 / 1445

  • Result: 100.00%

VS16 Score Details:

Variation Selector-16 support calculation:

  • Errors: 0 of 426 codepoints tested

  • Success rate: 100.0%

  • Formula: 100.0 / 100

  • Result: 100.00%

Variation Selector-15 support:

Note

Interpretation of VS-15 is contested. Its width behavior is not consistently implemented across terminals; this measurement is informational and excluded from final scoring.

Variation Selector-15 support calculation:

  • Errors: 158 of 158 codepoints tested

  • Success rate: 0.0%

  • Formula: 0.0 / 100

  • Result: 100.00% † (Text Sizing protocol)

SRI Score Details:

Standalone Regional Indicator support calculation:

  • Total successful codepoints: 26

  • Total codepoints tested: 26

  • Formula: 26 / 26

  • Result: 100.00%

SFZ Score Details:

Standalone Fitzpatrick skin tone modifier support calculation:

  • Total successful codepoints: 5

  • Total codepoints tested: 5

  • Formula: 5 / 5

  • Result: 100.00%

RI Score Details:

Regional Indicator flag sequence support calculation:

  • Total successful sequences: 262

  • Total sequences tested: 262

  • Formula: 262 / 262

  • Result: 100.00%

Features Score Details:

Notable terminal features (17.0 / 18):

Raw score: 94.44%

Graphics Score Details:

Graphics protocol support (100%):

  • Sixel: yes

  • ReGIS: yes

  • iTerm2: no

  • Kitty: yes

Scoring: 100% for modern (iTerm2/Kitty), 50% for legacy only (Sixel/ReGIS), 0% for none

Resource Score Details:

  • Duration: 27.0s

  • Mean CPU: 37.6%

  • Mean RSS: 202.2 MB

  • Resources Score: 51/100

  • Note: log-scale composite cost = log(CPU+1) + log(RSS+1) + log(time+1)

  • Scaled result: 51.0%

LANG Score Details (Geometric Mean):

Geometric mean calculation:

  • Formula: (p₁ × p₂ × … × pₙ)^(1/n) where n = 85 contested languages

  • About geometric mean

  • Result: 100.00% † (Text Sizing protocol)

Wide character support

Wide character support of contour is 97.8% (976 errors of 44568 codepoints tested).

Sequence of a WIDE character, from midpoint of alignment failure records:

#

Codepoint

Python

Category

wcwidth

Name

1

U+00018FE8

‘\U00018fe8’

Cn

2

na

Total codepoints: 1

  • Shell test using printf(1), '|' should align in output:

    $ printf "\xf0\x98\xbf\xa8|\\n12|\\n"
    𘿨|
    12|
    

Screenshot:

Terminal screenshot of the rendering discrepancy

Narrow character support

Narrow character support of contour is 100.0% (0 errors of 36254 codepoints tested).

Emoji ZWJ support

Compatibility of contour with the Unicode Emoji ZWJ sequence table is 100.0% (0 errors of 1445 sequences tested).

Variation Selector-16 support

Emoji VS-16 results for contour is 0 errors out of 426 total codepoints tested, 100.0% success. All codepoint combinations with Variation Selector-16 tested were successful.

Variation Selector-15 support

Emoji VS-15 results for contour is 158 errors out of 158 total codepoints tested, 0.0% success. Sequence of a WIDE Emoji made NARROW by Variation Selector-15, from midpoint of alignment failure records:

#

Codepoint

Python

Category

wcwidth

Name

1

U+0001F3AE

‘\U0001f3ae’

So

2

VIDEO GAME

2

U+FE0E

‘\ufe0e’

Mn

0

VARIATION SELECTOR-15

Total codepoints: 2

  • Shell test using printf(1), '|' should align in output:

    $ printf "\xf0\x9f\x8e\xae\xef\xb8\x8e|\\n1|\\n"
    🎮︎|
    1|
    

Screenshot:

Terminal screenshot of the rendering discrepancy

Standalone Regional Indicator support

Standalone Regional Indicator support of contour is 100.0% (0 errors of 26 codepoints tested).

Standalone Fitzpatrick modifier support

Standalone Fitzpatrick skin tone modifier support of contour is 100.0% (0 errors of 5 codepoints tested).

Regional Indicator flag sequence support

Regional Indicator flag sequence support of contour is 100.0% (0 errors of 262 sequences tested).

Graphics Protocol Support

contour supports the following graphics protocols: Sixel, ReGIS, Kitty graphics.

Detection Methods:

  • Sixel and ReGIS: Detected via the Device Attributes (DA1) query CSI c (\x1b[c). Sixel indicator (4): present, ReGIS indicator (3): present.

  • Kitty graphics: Detected by sending a Kitty graphics query and checking for an OK response.

  • iTerm2 inline images: Not detected by drawing a 1x1 transparent image, OSC 1337 ; File=inline=1, and checking that the cursor advanced a single column.

  • iTerm2 capabilities: Detected via the OSC 1337 ; Capabilities query, which does not describe image support, and does not contribute to this score.

Device Attributes

  • Raw response: '\x1b[?65;1;3;4;7;9;18;21;22;29;52;314c'

  • Service class: 65 (VT525)

Detected Extensions:

Code

Description

1

132-column mode

3

ReGIS graphics

4

Sixel graphics

7

Soft character sets (DRCS)

9

National replacement charsets

18

User windows

21

Horizontal scrolling

22

ANSI color

29

Text locator (mouse)

52

OSC 52 clipboard

314

Pixel geometry

Language Support

The following 116 languages were tested with 100% success:

(Jinan), (Yeonbyeon), Aja, Amarakaeri, Arabic, Standard, Assyrian Neo-Aramaic, Baatonum, Bamun, Belanda Viri, Bengali, Bhojpuri, Bora, Burmese, Catalan (2), Chakma, Chickasaw, Chinantec, Chiltepec, Chinese, Gan, Chinese, Hakka, Chinese, Jinyu, Chinese, Mandarin (Beijing), Chinese, Mandarin (Guiyang), Chinese, Mandarin (Harbin), Chinese, Mandarin (Nanjing), Chinese, Mandarin (Simplified), Chinese, Mandarin (Tianjin), Chinese, Mandarin (Traditional), Chinese, Min Nan, Chinese, Wu, Chinese, Xiang, Chinese, Yue, Colorado, Dagaare, Southern, Dangme, Dari, Dendi, Dinka, Northeastern, Ditammari, Dzongkha, Evenki, Farsi, Western, Fon, French (Welche), Fur, Ga, Gen, Gilyak, Gujarati, Gumuz, Hindi, Japanese, Japanese (Osaka), Japanese (Tokyo), Javanese (Javanese), Kabyle, Kannada, Khmer, Central, Korean, Lamnso’, Lao, Lingala (tones), Magahi, Maithili, Maldivian, Maori (2), Marathi, Mazahua Central, Mirandese, Mixtec, Metlatónoc, Mon, Mongolian, Halh (Mongolian), Mòoré, Nanai, Navajo, Nepali, Nuosu, Orok, Otomi, Mezquital, Panjabi, Eastern, Panjabi, Western, Pashto, Northern, Picard, Pular (Adlam), Saint Lucian Creole French, Sanskrit, Sanskrit (Grantha), Secoya, Seraiki, Shan, Shipibo-Conibo, Sinhala, Siona, South Azerbaijani, Tagalog (Tagalog), Tai Dam, Tamang, Eastern, Tamazight, Central Atlas, Tamil, Tamil (Sri Lanka), Telugu, Tem, Thai, Thai (2), Tibetan, Central, Ticuna, Uduk, Urdu, Urdu (2), Veps, Vietnamese, Vietnamese (Han nom), Waama, Yaneshaʼ, Yiddish, Eastern, Yoruba, Éwé.

The following 2 languages are not fully supported:

lang

n_errors

n_total

pct_success

Khün

71

419

83.1%

Malayalam

1

844

99.9%

Khün

Sequence of language Khün from midpoint of alignment failure records:

#

Codepoint

Python

Category

wcwidth

Name

1

U+1A20

‘\u1a20’

Lo

1

TAI THAM LETTER HIGH KA

2

U+1A6E

‘\u1a6e’

Mc

0

TAI THAM VOWEL SIGN E

3

U+1A60

‘\u1a60’

Mn

0

TAI THAM SIGN SAKOT

4

U+1A2F

‘\u1a2f’

Lo

1

TAI THAM LETTER DA

5

U+1A68

‘\u1a68’

Mn

0

TAI THAM VOWEL SIGN UUE

Total codepoints: 5

  • Shell test using printf(1), '|' should align in output:

    $ printf "\xe1\xa8\xa0\xe1\xa9\xae\xe1\xa9\xa0\xe1\xa8\xaf\xe1\xa9\xa8|\\n12|\\n"
    ᨠᩮ᩠ᨯᩨ|
    12|
    

Screenshot:

Terminal screenshot of the rendering discrepancy

Malayalam

Sequence of language Malayalam from midpoint of alignment failure records:

#

Codepoint

Python

Category

wcwidth

Name

1

U+0D7B

‘\u0d7b’

Lo

1

MALAYALAM LETTER CHILLU N

2

U+0D4D

‘\u0d4d’

Mn

0

MALAYALAM SIGN VIRAMA

3

U+0D31

‘\u0d31’

Lo

1

MALAYALAM LETTER RRA

4

U+0D46

‘\u0d46’

Mc

0

MALAYALAM VOWEL SIGN E

Total codepoints: 4

  • Shell test using printf(1), '|' should align in output:

    $ printf "\xe0\xb5\xbb\xe0\xb5\x8d\xe0\xb4\xb1\xe0\xb5\x86|\\n12|\\n"
    ൻ്റെ|
    12|
    

Screenshot:

Terminal screenshot of the rendering discrepancy

DEC Private Modes Support

DEC private modes results for contour: 8 changeable modes of 8 supported out of 8 total modes tested (100.0% support, 100.0% changeable).

Complete list of DEC private modes tested:

Mode

Name

Description

Supported

Changeable

Enabled

1004

FOCUS_IN_OUT_EVENTS

Send FocusIn/FocusOut events

Yes

Yes

No

1006

MOUSE_EXTENDED_SGR

Enable SGR Mouse Mode

Yes

Yes

No

2004

BRACKETED_PASTE

Set bracketed paste mode

Yes

Yes

No

2026

SYNCHRONIZED_OUTPUT

Synchronized Output

Yes

Yes

No

2027

GRAPHEME_CLUSTERING

Grapheme Clustering

Yes

Yes

Yes

2031

COLOR_PALETTE_UPDATES

Color palette updates

Yes

Yes

No

2048

IN_BAND_WINDOW_RESIZE

In-Band Window Resize Notifications

Yes

Yes

No

5522

BRACKETED_PASTE_MIME

Bracketed Paste MIME

Yes

Yes

No

Summary: 8 changeable, 0 not changeable.

Kitty Keyboard Protocol

contour supports the Kitty keyboard protocol.

#

Flag

Key

Supported

1

Disambiguate escape codes

disambiguate

Yes

2

Report event types

report_events

Yes

3

Report alternate keys

report_alternates

Yes

4

Report all keys as escape codes

report_all_keys

Yes

5

Report associated text

report_text

Yes

Detection is performed by enabling all progressive enhancement modes by set (CSI = 31 ; 1 u) and re-querying with CSI ? u to confirm which modes the terminal honors, before restoring its original flags.

XTGETTCAP (Terminfo Capabilities)

contour supports the XTGETTCAP sequence and reports 192 terminfo capabilities (Full).

#

Capability

Description

Value

1

Cs

Reset cursor color

\E]12;%p1%s\E\

2

E3

Erase scrollback

\E[3J

3

RGB

Bits per color channel (8 = 24-bit truecolor)

8/8/8

4

Rmol

Reset overline mode

\E[55m

5

Se

Reset underline style

\E[ q

6

Setulc

Set underline color

\E[58:2:%p1%{65536}%/%d:%p1%{256}%/%{255}%&%d:%p1%{255}%&...

7

Smol

Set overline mode

\E[53m

8

Smulx

Styled underline

\E[4:%p1%dm

9

Ss

Set underline style

\E[%p1%d q

10

Su

Colored underlines

(empty)

11

Sync

Synchronized output

\E[?2026%?%p1%{1}%-%tl%eh

12

TN

Terminal name

xterm-256color

13

Tc

Truecolor (24-bit RGB)

(empty)

14

acsc

Alternate character set

``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~

15

am

Auto right margin

(empty)

16

bce

Background color erase

(empty)

17

bel

Bell

\a

18

bold

Enter bold mode

\E[1m

19

ccc

Can redefine colors

(empty)

20

civis

Hide cursor

\E[?25l

21

clear

Clear screen

\E[H\E[2J

22

cnorm

Normal cursor

\E[?12l\E[?25h

23

colors

Max colors on screen

256

24

cols

Columns

80

25

cr

Carriage return

\r

26

csr

Change scroll region

\E[%i%p1%d;%p2%dr

27

cub

Cursor left n

\E[%p1%dD

28

cub1

Cursor left

\b

29

cud

Cursor down n

\E[%p1%dB

30

cud1

Cursor down

\n

31

cuf

Cursor right n

\E[%p1%dC

32

cuf1

Cursor right

\E[C

33

cup

Cursor address

\E[%i%p1%d;%p2%dH

34

cuu

Cursor up n

\E[%p1%dA

35

cuu1

Cursor up

\E[A

36

cvvis

Very visible cursor

\E[?12;25h

37

dch

Delete n characters

\E[%p1%dP

38

dch1

Delete character

\E[P

39

dim

Enter dim mode

\E[2m

40

dl

Delete n lines

\E[%p1%dM

41

dl1

Delete line

\E[M

42

dsl

Disable status line

\E[$~

43

ech

Erase characters

\E[%p1%dX

44

ed

Clear to end of screen

\E[J

45

el

Clear to end of line

\E[K

46

el1

Clear to start of line

\E[1K

47

eslok

Status line escape OK

(empty)

48

flash

Flash screen

\E[?5h$<100/>\E[?5l

49

fsl

From status line

\E[$}

50

home

Cursor home

\E[H

51

hpa

Horizontal position

\E[%i%p1%dG

52

hs

Has status line

(empty)

53

ht

Horizontal tab

\t

54

hts

Set tab stop

\EH

55

ich

Insert n characters

\E[%p1%d@

56

il

Insert n lines

\E[%p1%dL

57

il1

Insert line

\E[L

58

ind

Scroll forward

\n

59

indn

Scroll forward n

\E[%p1%dS

60

initc

Initialize color

\E]4;%p1%d;rgb:%p2%{255}%*%{1000}%/%2.2X/%p3%{255}%*%{100...

61

invis

Invisible cursor

\E[8m

62

it

Init tabs

8

63

kDC

Shifted delete-char key

\E[3;2~

64

kDC3

Alt delete-char key

\E[3;3~

65

kDC4

Alt-Shift delete-char key

\E[3;4~

66

kDC5

Ctrl delete-char key

\E[3;5~

67

kDC6

Ctrl-Shift delete-char key

\E[3;6~

68

kDC7

Ctrl-Alt delete-char key

\E[3;7~

69

kDN

Shifted down-arrow key

\E[1;2B

70

kDN3

Alt down-arrow key

\E[1;3B

71

kDN4

Alt-Shift down-arrow key

\E[1;4B

72

kDN5

Ctrl down-arrow key

\E[1;5B

73

kDN6

Ctrl-Shift down-arrow key

\E[1;6B

74

kDN7

Ctrl-Alt down-arrow key

\E[1;7B

75

kEND

Shifted end key

\E[1;2F

76

kEND3

Alt end key

\E[1;3F

77

kEND4

Alt-Shift end key

\E[1;4F

78

kEND5

Ctrl end key

\E[1;5F

79

kEND6

Ctrl-Shift end key

\E[1;6F

80

kEND7

Ctrl-Alt end key

\E[1;7F

81

kHOM

Shifted home key

\E[1;2H

82

kHOM3

Alt home key

\E[1;3H

83

kHOM4

Alt-Shift home key

\E[1;4H

84

kHOM5

Ctrl home key

\E[1;5H

85

kHOM6

Ctrl-Shift home key

\E[1;6H

86

kHOM7

Ctrl-Alt home key

\E[1;7H

87

kIC

Shifted insert-char key

\E[2;2~

88

kIC3

Alt insert-char key

\E[2;3~

89

kIC4

Alt-Shift insert-char key

\E[2;4~

90

kIC5

Ctrl insert-char key

\E[2;5~

91

kIC6

Ctrl-Shift insert-char key

\E[2;6~

92

kIC7

Ctrl-Alt insert-char key

\E[2;7~

93

kLFT

Shifted left-arrow key

\E[1;2D

94

kLFT3

Alt left-arrow key

\E[1;3D

95

kLFT4

Alt-Shift left-arrow key

\E[1;4D

96

kLFT5

Ctrl left-arrow key

\E[1;5D

97

kLFT6

Ctrl-Shift left-arrow key

\E[1;6D

98

kLFT7

Ctrl-Alt left-arrow key

\E[1;7D

99

kNXT

Shifted next-page key

\E[6;2~

100

kNXT3

Alt next-page key

\E[6;3~

101

kNXT4

Alt-Shift next-page key

\E[6;4~

102

kNXT5

Ctrl next-page key

\E[6;5~

103

kNXT6

Ctrl-Shift next-page key

\E[6;6~

104

kNXT7

Ctrl-Alt next-page key

\E[6;7~

105

kPRV

Shifted previous-page key

\E[5;2~

106

kPRV3

Alt previous-page key

\E[5;3~

107

kPRV4

Alt-Shift previous-page key

\E[5;4~

108

kPRV5

Ctrl previous-page key

\E[5;5~

109

kPRV6

Ctrl-Shift previous-page key

\E[5;6~

110

kPRV7

Ctrl-Alt previous-page key

\E[5;7~

111

kRIT

Shifted right-arrow key

\E[1;2C

112

kRIT3

Alt right-arrow key

\E[1;3C

113

kRIT4

Alt-Shift right-arrow key

\E[1;4C

114

kRIT5

Ctrl right-arrow key

\E[1;5C

115

kRIT6

Ctrl-Shift right-arrow key

\E[1;6C

116

kRIT7

Ctrl-Alt right-arrow key

\E[1;7C

117

kUP

Shifted up-arrow key

\E[1;2A

118

kUP3

Alt up-arrow key

\E[1;3A

119

kUP4

Alt-Shift up-arrow key

\E[1;4A

120

kUP5

Ctrl up-arrow key

\E[1;5A

121

kUP6

Ctrl-Shift up-arrow key

\E[1;6A

122

kUP7

Ctrl-Alt up-arrow key

\E[1;7A

123

kbs

Backspace key



124

kcbt

Back-tab key

\E[Z

125

kcub1

Left arrow key

\EOD

126

kcud1

Down arrow key

\EOB

127

kcuf1

Right arrow key

\EOC

128

kcuu1

Up arrow key

\EOA

129

kdch1

Delete character key

\E[3~

130

kend

End key

\EOF

131

kf1

Function key F1

\EOP

132

kf10

Function key F10

\E[21~

133

kf11

Function key F11

\E[23~

134

kf12

Function key F12

\E[24~

135

kf2

Function key F2

\EOQ

136

kf3

Function key F3

\EOR

137

kf4

Function key F4

\EOS

138

kf5

Function key F5

\E[15~

139

kf6

Function key F6

\E[17~

140

kf7

Function key F7

\E[18~

141

kf8

Function key F8

\E[19~

142

kf9

Function key F9

\E[20~

143

khome

Home key

\EOH

144

kich1

Insert character key

\E[2~

145

kind

Scroll-down key

\E[1;2B

146

km

Has meta key

(empty)

147

kmous

Mouse key

\E[M

148

knp

Next page key

\E[6~

149

kpp

Previous page key

\E[5~

150

kri

Scroll-up key

\E[1;2A

151

lines

Lines

24

152

mc5i

Will not echo input

(empty)

153

mir

Move in insert mode

(empty)

154

msgr

Move in standout mode

(empty)

155

npc

No pad character

(empty)

156

oc

Original colors

\E]104\E\

157

op

Original pair

\E[39;49m

158

pairs

Max color pairs

65536

159

rc

Restore cursor

\E8

160

rep

Repeat character

%p1%c\E[%p2%{1}%-%db

161

rev

Enter reverse mode

\E[7m

162

ri

Reverse index

\EM

163

rin

Scroll reverse n

\E[%p1%dT

164

ritm

Exit italics mode

\E[23m

165

rmacs

Exit alternate charset mode

\E(B

166

rmam

Disable line wrap

\E[?7l

167

rmcup

Exit alt screen

\E[?1049l

168

rmir

Exit insert mode

\E[4l

169

rmkx

Keypad local mode

\E[?1l

170

rmso

Exit standout mode

\E[27m

171

rmul

Exit underline mode

\E[24m

172

rs1

Reset string 1

\E]\E\\Ec

173

sc

Save cursor

\E7

174

setab

Set background color

\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%...

175

setaf

Set foreground color

\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p...

176

setrgbb

Set RGB background

\E[48:2:%p1%d:%p2%d:%p3%dm

177

setrgbf

Set RGB foreground

\E[38:2:%p1%d:%p2%d:%p3%dm

178

sgr

Set attributes

%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t...

179

sgr0

Reset attributes

\E(B\E[m

180

sitm

Enter italics mode

\E[3m

181

smacs

Enter alternate charset mode

\E(0

182

smam

Enable line wrap

\E[?7h

183

smcup

Enter alt screen

\E[?1049h

184

smir

Enter insert mode

\E[4h

185

smkx

Keypad transmit mode

\E[?1h

186

smso

Enter standout mode

\E[7m

187

smul

Enter underline mode

\E[4m

188

tbc

Clear all tabs

\E[3g

189

tsl

To status line

\E[2$~\E[1$}\E[H\E[2J

190

vpa

Vertical position

\E[%i%p1%dd

191

xenl

Newline glitch

(empty)

192

xvpa

Extended vertical positioning

(empty)

The XTGETTCAP sequence (DCS + q Pt ST) allows applications to query terminfo capabilities directly from the terminal emulator, rather than relying on the system terminfo database.

Text Sizing Protocol (OSC 66)

contour supports the Text Sizing protocol: explicit width (w), scale (s).

The Text Sizing protocol (OSC 66) allows terminal programs to display text at different sizes and to explicitly specify the cell width of characters. Detection is performed by measuring cursor movement after sending ESC ] 66 ; w=2 ; <space> BEL and ESC ] 66 ; s=2 ; <space> BEL.

Because this terminal supports the Text Sizing protocol, any application can programmatically set the displayed cell width of any character. This means that width errors for complex languages, emoji, variation selectors (VS15, VS16), standalone regional indicators and Fitzpatrick modifiers, and other problematic codepoints can be fully remediated at the application level. For this reason, contour is credited 100% on the LANG and VS15 width tests, where it measured below 100% or was not measured at all. Every other width score was measured directly.

Tofu Detection

A tofu is the □ U+25A1 WHITE SQUARE placeholder box drawn in place of a codepoint the terminal’s font has no glyph for. Two protocols allow a program to ask which codepoints may ‘tofu’: mintty’s Font Glyph Coverage Enquiry and the Glyph Protocol implemented first by Rio.

contour does not answer a font glyph coverage enquiry by either protocol, ‘tofus’ cannot be determined by automatic code.

Truecolor Support

contour supports 24-bit truecolor, detectable via:

  • XTGETTCAP (RGB capability): yes (RGB)

  • DECRQSS (truecolor probe): yes (probe)

  • COLORTERM: yes (truecolor)

OSC 52 Clipboard Support

contour supports OSC 52 clipboard operations (detected via DA1 extension 52).

  • DA1 extension 52: yes

  • XTGETTCAP Ms: no

Terminal Identification

contour is identified as contour version 0.7.1-master-9f0850ce (detected via XTVERSION).

  • XTVERSION (raw): contour 0.7.1-master-9f0850ce

  • XTVERSION: yes

  • XTGETTCAP TN: yes (xterm-256color)

  • ENQ: no

  • TERM_PROGRAM: yes (contour)

  • TERM: yes (contour)

Reproduction

To reproduce these results for contour, install and run ucs-detect with the following commands:

uvx ucs-detect --rerun data/contour.yaml

Test Performance

The test suite completed in 26.96 seconds (26s).

  • Mean CPU: 37.6%

  • Mean RSS: 202.2 MB

  • Total time: 27.0s

CPU usage over time

CPU usage during test execution for contour.

RSS memory over time

RSS memory usage during test execution for contour.

Duration comparison

Test duration for contour compared to all other terminals.

CPU % vs Duration

CPU % vs duration trade-off for contour.