mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Merge pull request #3891 from sbatten/sbatten/powerline-circles
add powerline semi circle glyphs
This commit is contained in:
@@ -611,6 +611,32 @@ function powerlineSymbolTest() {
|
||||
` 7 \ue0b3 \x1b[7;37;49m\ue0b2\x1b[0m`
|
||||
);
|
||||
term.writeln('');
|
||||
term.writeln(
|
||||
`\x1b[7m` +
|
||||
` inverse \ue0b5 \x1b[0;40m\ue0b4` +
|
||||
` 0 \ue0b5 \x1b[30;41m\ue0b4\x1b[39m` +
|
||||
` 1 \ue0b5 \x1b[31;42m\ue0b4\x1b[39m` +
|
||||
` 2 \ue0b5 \x1b[32;43m\ue0b4\x1b[39m` +
|
||||
` 3 \ue0b5 \x1b[33;44m\ue0b4\x1b[39m` +
|
||||
` 4 \ue0b5 \x1b[34;45m\ue0b4\x1b[39m` +
|
||||
` 5 \ue0b5 \x1b[35;46m\ue0b4\x1b[39m` +
|
||||
` 6 \ue0b5 \x1b[36;47m\ue0b4\x1b[39m` +
|
||||
` 7 \ue0b5 \x1b[37;49m\ue0b4\x1b[0m`
|
||||
);
|
||||
term.writeln('');
|
||||
term.writeln(
|
||||
`\x1b[7m` +
|
||||
` inverse \ue0b7 \x1b[0;7;40m\ue0b6\x1b[27m` +
|
||||
` 0 \ue0b7 \x1b[7;30;41m\ue0b6\x1b[27;39m` +
|
||||
` 1 \ue0b7 \x1b[7;31;42m\ue0b6\x1b[27;39m` +
|
||||
` 2 \ue0b7 \x1b[7;32;43m\ue0b6\x1b[27;39m` +
|
||||
` 3 \ue0b7 \x1b[7;33;44m\ue0b6\x1b[27;39m` +
|
||||
` 4 \ue0b7 \x1b[7;34;45m\ue0b6\x1b[27;39m` +
|
||||
` 5 \ue0b7 \x1b[7;35;46m\ue0b6\x1b[27;39m` +
|
||||
` 6 \ue0b7 \x1b[7;36;47m\ue0b6\x1b[27;39m` +
|
||||
` 7 \ue0b7 \x1b[7;37;49m\ue0b6\x1b[0m`
|
||||
);
|
||||
term.writeln('');
|
||||
term.writeln('Powerline extra symbols:');
|
||||
term.writeln(' 0 1 2 3 4 5 6 7 8 9 A B C D E F');
|
||||
term.writeln(`0xA_ ${s('\ue0a3')}`);
|
||||
|
||||
@@ -353,7 +353,15 @@ export const powerlineDefinitions: { [index: string]: IVectorShape } = {
|
||||
// Left triangle solid
|
||||
'\u{E0B2}': { d: 'M1,0 L0,.5 L1,1', type: VectorType.FILL },
|
||||
// Left triangle line
|
||||
'\u{E0B3}': { d: 'M1,0 L0,.5 L1,1', type: VectorType.STROKE, horizontalPadding: 0.5 }
|
||||
'\u{E0B3}': { d: 'M1,0 L0,.5 L1,1', type: VectorType.STROKE, horizontalPadding: 0.5 },
|
||||
// Right semi-circle solid,
|
||||
'\u{E0B4}': { d: 'M0,0 L0,1 C0.552,1,1,0.776,1,.5 C1,0.224,0.552,0,0,0', type: VectorType.FILL },
|
||||
// Right semi-circle line,
|
||||
'\u{E0B5}': { d: 'M0,1 C0.552,1,1,0.776,1,.5 C1,0.224,0.552,0,0,0', type: VectorType.STROKE },
|
||||
// Left semi-circle solid,
|
||||
'\u{E0B6}': { d: 'M1,0 L1,1 C0.448,1,0,0.776,0,.5 C0,0.224,0.448,0,1,0', type: VectorType.FILL },
|
||||
// Left semi-circle line,
|
||||
'\u{E0B7}': { d: 'M1,1 C0.448,1,0,0.776,0,.5 C0,0.224,0.448,0,1,0', type: VectorType.STROKE }
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user