This commit is contained in:
meganrogge
2021-08-11 15:36:29 -07:00
parent 57c7e6af47
commit 927a142480
2 changed files with 21 additions and 19 deletions
+17 -17
View File
@@ -310,11 +310,11 @@ export const chars: { [index: string]: string } = {
'╈': `${yAxis}${THICK} ${xAxis}`,
'╉': `${yAxis}${THICK} ${leftMiddleXAxis}${THICK} ${rightMiddleXAxis}`,
'╊': `${yAxis} ${leftMiddleXAxis} ${rightMiddleXAxis}${THICK}`,
'╋': `${yAxis}${THICK} ${xAxis}${THICK}`
// '╌': `${MOVE}${} ${TO}${} ${TO}${}`,
// '╍': `${MOVE}${} ${TO}${} ${TO}${}`,
// '╎': `${MOVE}${} ${TO}${} ${TO}${}`,
// '╏': `${MOVE}${} ${TO}${} ${TO}${}`,
'╋': `${yAxis}${THICK} ${xAxis}${THICK}`,
'╌': `${MOVE}${LEFT.MIDDLE} ${TO}${'.4,.5'} ${MOVE}${'.6,.5'} ${TO}${RIGHT.MIDDLE}`,
'╍': `${MOVE}${LEFT.MIDDLE} ${TO}${'.4,.5'}${THICK} ${MOVE}${'.6,.5'} ${TO}${RIGHT.MIDDLE}${THICK}`,
'╎':`${MOVE}${CENTER.BOTTOM} ${TO}${'.5,.3'} ${MOVE}${'.5,.7'} ${TO}${CENTER.TOP}`,
'╏':`${MOVE}${CENTER.BOTTOM} ${TO}${'.5,.3'}${THICK} ${MOVE}${'.5,.7'} ${TO}${CENTER.TOP}${THICK}`,
// '═': `${MOVE}${} ${TO}${} ${TO}${}`,
// '║': `${MOVE}${} ${TO}${} ${TO}${}`,
// '╒': `${MOVE}${} ${TO}${} ${TO}${}`,
@@ -351,18 +351,18 @@ export const chars: { [index: string]: string } = {
// '': `${MOVE}${} ${TO}${} ${TO}${}`,
// '╲': `${MOVE}${} ${TO}${} ${TO}${}`,
// '': `${MOVE}${} ${TO}${} ${TO}${}`,
// '╴': `${MOVE}${} ${TO}${} ${TO}${}`,
// '╵': `${MOVE}${} ${TO}${} ${TO}${}`,
// '╶': `${MOVE}${} ${TO}${} ${TO}${}`,
// '╷': `${MOVE}${} ${TO}${} ${TO}${}`,
// '╸': `${MOVE}${} ${TO}${} ${TO}${}`,
// '╹': `${MOVE}${} ${TO}${} ${TO}${}`,
// '╺': `${MOVE}${} ${TO}${} ${TO}${}`,
// '╻': `${MOVE}${} ${TO}${} ${TO}${}`,
// '╼': `${MOVE}${} ${TO}${} ${TO}${}`,
// '╽': `${MOVE}${} ${TO}${} ${TO}${}`,
// '╾': `${MOVE}${} ${TO}${} ${TO}${}`,
// '╿': `${MOVE}${} ${TO}${} ${TO}${}`
'╴': `${leftMiddleXAxis}`,
'╵': `${topYAxisFromMiddle}`,
'╶': `${rightMiddleXAxis}`,
'╷': `${bottomYAxisFromMiddle}`,
'╸': `${leftMiddleXAxis}${THICK}`,
'╹': `${topYAxisFromMiddle}${THICK}`,
'╺': `${rightMiddleXAxis}${THICK}`,
'╻': `${bottomYAxisFromMiddle}${THICK}`,
'╼': `${leftMiddleXAxis} ${rightMiddleXAxis}${THICK}`,
'╽': `${bottomYAxisFromBottom}${THICK} ${topYAxisFromMiddle}`,
'╾': `${leftMiddleXAxis}${THICK} ${rightMiddleXAxis}`,
'╿': `${bottomYAxisFromBottom} ${topYAxisFromMiddle}${THICK}`
};
export function draw(ctx: CanvasRenderingContext2D, c: string, xOffset: number, yOffset: number, cellWidth: number, cellHeight: number): void {
+4 -2
View File
@@ -151,10 +151,12 @@ export abstract class CoreTerminal extends Disposable implements ICoreTerminal {
this.write(' ━━│┃┌┍┎┏\r\n');
this.write(' ━━│┃┌┐┍┑┎┒┏┓\r\n');
this.write(' └┘┕┙┖┚┗┛\r\n');
this.write('├┝┞┟┠┡┢┣┤┥┦┧┨┩┪┫┬┭┮┯┰┱┲┳┴┵┶┷┸┹┺┻┼┽┾┿╀╁╂╃╄╅╆╇╈╉╊╋╍╎╏═║╒╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡╢╣╤╥╦╧╨╩╪╫╬╭╮╯╰╱╲╳╴╵╶╷╸╹╺╻╼╽╾╿\r\n');
this.write('├┝┞┟┠┡┢┣┤┥┦┧┨┩┪┫┬┭┮┯┰┱┲┳┴┵┶┷┸┹┺┻┼┽┾┿╀╁╂╃╄╅╆╇╈╉╊╋╍╎╏═║╒╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡╢╣╤╥╦╧╨╩╪╫╬\r\n');
this.write('╭╮╯╰╱╲╳╴╵╶╷╸╹╺╻╼╽╾╿\r\n');
this.write('├ ┝ ┞ ┟ ┠ ┡ ┢ ┣ ┤ ┥ ┦ ┧ ┨ ┩ ┪ ┫ ┬ ┭ ┮ ┯ ┰ ┱ ┲ ┳ ┴ ┵ ┶ ┷ ┸ ┹ ┺ ┻\r\n');
this.write('┼ ┽ ┾ ┿ ╀ ╁ ╂ ╃ ╄ ╅ ╆ ╇ ╈ ╉ ╊ ╋\r\n');
this.write('╌ ╍ ╎ ╏ ═ ║ ╒ ╓ ╔ ╕ ╖ ╗ ╘ ╙ ╚ ╛ ╜ ╝ ╞ ╟ ╠ ╡ ╢ ╣ ╤ ╥ ╦ ╧ ╨ ╩ ╪ ╫ ╬ ╭ ╮ ╯ ╰ ╱ ╲ ╳ ╴ ╵ ╶ ╷ ╸ ╹ ╺ ╻ ╼ ╽ ╾ ╿\r\n');
this.write(' ╌ ╍ ╎ ╏ ═ ║ ╒ ╓ ╔ ╕ ╖ ╗ ╘ ╙ ╚ ╛ ╜ ╝ ╞ ╟ ╠ ╡ ╢ ╣ ╤ ╥ ╦ ╧ ╨ ╩ ╪ ╫ ╬\r\n');
this.write('╭ ╮ ╯ ╰ ╱ ╲ ╳ ╴ ╵ ╶ ╷ ╸ ╹ ╺ ╻ ╼ ╽ ╾ ╿\r\n');
}, 1000);
}