Cli.tone_on: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 933-940 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=933&end_line=940 import Base # A skin tone after an emoji that takes one widens it to 2; any other is # 2 wide alone, as East Asian Wide. def tone_on(takes: Bool, narrow: Bool, join: Bool, code: U32) -> WidthStep: match takes: case True{}: WidthStep{Bool.pick(Nat, narrow, 1n, 0n), EmojiBase{code, False{}, join}} case False{}: WidthStep{2n, EmojiNone{}} Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=EmojiRun https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=WidthStep