MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / supportsUnicode

Function supportsUnicode

src/ui/glyphs.ts:33–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31 */
32
33export function supportsUnicode(): boolean {
34 if (process.env.CODEGRAPH_ASCII === '1') return false;
35 if (process.env.CODEGRAPH_UNICODE === '1') return true;
36 if (process.platform === 'win32') {
37 const env = process.env;
38 return Boolean(
39 env.CI ||
40 env.WT_SESSION || // Windows Terminal
41 env.TERMINUS_SUBLIME ||
42 env.ConEmuTask === '{cmd::Cmder}' || // ConEmu and cmder
43 env.TERM_PROGRAM === 'Terminus-Sublime' ||
44 env.TERM_PROGRAM === 'vscode' ||
45 env.TERM === 'xterm-256color' ||
46 env.TERM === 'alacritty' ||
47 env.TERMINAL_EMULATOR === 'JetBrains-JediTerm'
48 );
49 }
50 return process.env.TERM !== 'linux';
51}
52
53export interface Glyphs {
54 ok: string;

Callers 2

glyphs.test.tsFile · 0.90
getGlyphsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected