add more characters
This commit is contained in:
@@ -232,76 +232,85 @@ export const enum RIGHT {
|
|||||||
|
|
||||||
const MOVE = 'M';
|
const MOVE = 'M';
|
||||||
const TO = 'L';
|
const TO = 'L';
|
||||||
const BOLD = '!';
|
const THICK = '!';
|
||||||
|
|
||||||
|
const yAxis = `${MOVE}${CENTER.TOP} ${TO}${CENTER.BOTTOM}`;
|
||||||
|
const xAxis = `${MOVE}${LEFT.MIDDLE} ${TO}${RIGHT.MIDDLE}`;
|
||||||
|
const bottomYAxisFromBottom = `${MOVE}${CENTER.BOTTOM} ${TO}${CENTER.MIDDLE}`;
|
||||||
|
const bottomYAxisFromMiddle = `${MOVE}${CENTER.MIDDLE} ${TO}${CENTER.BOTTOM}`;
|
||||||
|
const topYAxisFromTop = `${MOVE}${CENTER.TOP} ${TO}${CENTER.MIDDLE}`;
|
||||||
|
const topYAxisFromMiddle = `${MOVE}${CENTER.TOP} ${TO}${CENTER.MIDDLE}`;
|
||||||
|
const rightMiddleXAxis = `${MOVE}${CENTER.MIDDLE} ${TO}${RIGHT.MIDDLE}`;
|
||||||
|
const leftMiddleXAxis = `${MOVE}${CENTER.MIDDLE} ${TO}${LEFT.MIDDLE}`;
|
||||||
|
|
||||||
export const chars: { [index: string]: string } = {
|
export const chars: { [index: string]: string } = {
|
||||||
'━': `${MOVE}${LEFT.MIDDLE} ${TO}${RIGHT.MIDDLE}`,
|
'━': `${xAxis}`,
|
||||||
'│': `${MOVE}${CENTER.TOP} ${TO}${CENTER.BOTTOM}`,
|
'│': `${yAxis}`,
|
||||||
'┃': `${MOVE}${CENTER.TOP} ${TO}${CENTER.BOTTOM}${BOLD}`,
|
'┃': `${yAxis}${THICK}`,
|
||||||
'┌': `${MOVE}${CENTER.BOTTOM} ${TO}${CENTER.MIDDLE} ${TO}${RIGHT.MIDDLE}`,
|
'┌': `${bottomYAxisFromBottom} ${TO}${RIGHT.MIDDLE}`,
|
||||||
'┍': `${MOVE}${CENTER.BOTTOM} ${TO}${CENTER.MIDDLE} ${TO}${RIGHT.MIDDLE}${BOLD}`,
|
'┍': `${bottomYAxisFromBottom} ${TO}${RIGHT.MIDDLE}${THICK}`,
|
||||||
'┎': `${MOVE}${CENTER.BOTTOM} ${TO}${CENTER.MIDDLE}${BOLD} ${TO}${RIGHT.MIDDLE}`,
|
'┎': `${bottomYAxisFromBottom}${THICK} ${TO}${RIGHT.MIDDLE}`,
|
||||||
'┏': `${MOVE}${CENTER.BOTTOM} ${TO}${CENTER.MIDDLE}${BOLD} ${TO}${RIGHT.MIDDLE}${BOLD}`,
|
'┏': `${bottomYAxisFromBottom}${THICK} ${TO}${RIGHT.MIDDLE}${THICK}`,
|
||||||
'┐': `${MOVE}${CENTER.BOTTOM} ${TO}${CENTER.MIDDLE} ${TO}${LEFT.MIDDLE}`,
|
'┐': `${bottomYAxisFromBottom} ${TO}${LEFT.MIDDLE}`,
|
||||||
'┑': `${MOVE}${CENTER.BOTTOM} ${TO}${CENTER.MIDDLE} ${TO}${LEFT.MIDDLE}${BOLD}`,
|
'┑': `${bottomYAxisFromBottom} ${TO}${LEFT.MIDDLE}${THICK}`,
|
||||||
'┒': `${MOVE}${CENTER.BOTTOM} ${TO}${CENTER.MIDDLE}${BOLD} ${TO}${LEFT.MIDDLE}`,
|
'┒': `${bottomYAxisFromBottom}${THICK} ${TO}${LEFT.MIDDLE}`,
|
||||||
'┓': `${MOVE}${CENTER.BOTTOM} ${TO}${CENTER.MIDDLE}${BOLD} ${TO}${LEFT.MIDDLE}${BOLD}`
|
'┓': `${bottomYAxisFromBottom}${THICK} ${TO}${LEFT.MIDDLE}${THICK}`,
|
||||||
// '└': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'└': `${topYAxisFromTop} ${TO}${RIGHT.MIDDLE}`,
|
||||||
// '┕': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┕': `${topYAxisFromTop} ${TO}${RIGHT.MIDDLE}${THICK}`,
|
||||||
// '┖': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┖': `${topYAxisFromTop}${THICK} ${TO}${RIGHT.MIDDLE}`,
|
||||||
// '┗': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┗': `${topYAxisFromTop}${THICK} ${TO}${RIGHT.MIDDLE}${THICK}`,
|
||||||
// '┘': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┘': `${topYAxisFromTop} ${TO}${LEFT.MIDDLE}`,
|
||||||
// '┙': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┙': `${topYAxisFromTop} ${TO}${LEFT.MIDDLE}${THICK}`,
|
||||||
// '┚': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┚': `${topYAxisFromTop}${THICK} ${TO}${LEFT.MIDDLE}`,
|
||||||
// '┛': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┛': `${topYAxisFromTop}${THICK} ${TO}${LEFT.MIDDLE}${THICK}`,
|
||||||
// '├': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'├': `${yAxis} ${rightMiddleXAxis}`,
|
||||||
// '┝': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┝': `${yAxis} ${rightMiddleXAxis}${THICK}`,
|
||||||
// '┞': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┞': `${topYAxisFromTop}${THICK} ${bottomYAxisFromMiddle} ${rightMiddleXAxis}`,
|
||||||
// '┟': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┟': `${bottomYAxisFromBottom}${THICK} ${topYAxisFromMiddle} ${rightMiddleXAxis}${THICK}`,
|
||||||
// '┠': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┠': `${yAxis}${THICK} ${rightMiddleXAxis}`,
|
||||||
// '┡': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┡': `${bottomYAxisFromBottom} ${topYAxisFromMiddle}${THICK} ${rightMiddleXAxis}${THICK}`,
|
||||||
// '┢': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┢': `${bottomYAxisFromBottom}${THICK} ${topYAxisFromMiddle} ${rightMiddleXAxis}${THICK}`,
|
||||||
// '┣': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┣': `${yAxis}${THICK} ${rightMiddleXAxis}${THICK}`,
|
||||||
// '┤': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┤': `${yAxis} ${leftMiddleXAxis}`,
|
||||||
// '┥': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┥': `${yAxis} ${leftMiddleXAxis}${THICK}`,
|
||||||
// '┦': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┦': `${topYAxisFromTop}${THICK} ${bottomYAxisFromMiddle} ${leftMiddleXAxis}`,
|
||||||
// '┧': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┧': `${bottomYAxisFromBottom}${THICK} ${topYAxisFromMiddle} ${leftMiddleXAxis}${THICK}`,
|
||||||
// '┨': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┨': `${yAxis}${THICK} ${leftMiddleXAxis}`,
|
||||||
// '┩': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┩': `${bottomYAxisFromBottom} ${topYAxisFromMiddle}${THICK} ${leftMiddleXAxis}${THICK}`,
|
||||||
// '┪': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┪': `${bottomYAxisFromBottom}${THICK} ${topYAxisFromMiddle} ${leftMiddleXAxis}${THICK}`,
|
||||||
// '┫': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┫': `${yAxis}${THICK} ${leftMiddleXAxis}${THICK}`,
|
||||||
// '┬': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┬': `${bottomYAxisFromBottom} ${xAxis}`,
|
||||||
// '┭': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┭': `${bottomYAxisFromBottom} ${leftMiddleXAxis}${THICK} ${rightMiddleXAxis}`,
|
||||||
// '┮': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┮': `${bottomYAxisFromBottom} ${leftMiddleXAxis} ${rightMiddleXAxis}${THICK}`,
|
||||||
// '┯': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┯': `${bottomYAxisFromBottom} ${leftMiddleXAxis}${THICK} ${rightMiddleXAxis}${THICK}`,
|
||||||
// '┰': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┰': `${bottomYAxisFromBottom}${THICK} ${xAxis}`,
|
||||||
// '┱': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┱': `${bottomYAxisFromBottom}${THICK} ${leftMiddleXAxis}${THICK} ${rightMiddleXAxis}`,
|
||||||
// '┲': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┲': `${bottomYAxisFromBottom} ${leftMiddleXAxis} ${rightMiddleXAxis}${THICK}`,
|
||||||
// '┳': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┳': `${bottomYAxisFromBottom}${THICK} ${xAxis}${THICK}`,
|
||||||
// '┴': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┴': `${topYAxisFromTop} ${xAxis}`,
|
||||||
// '┵': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┵': `${topYAxisFromTop} ${leftMiddleXAxis}${THICK} ${rightMiddleXAxis}`,
|
||||||
// '┶': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┶': `${topYAxisFromTop} ${leftMiddleXAxis} ${rightMiddleXAxis}${THICK}`,
|
||||||
// '┷': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┷': `${topYAxisFromTop} ${leftMiddleXAxis}${THICK} ${rightMiddleXAxis}${THICK}`,
|
||||||
// '┸': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┸': `${topYAxisFromTop}${THICK} ${xAxis}`,
|
||||||
// '┹': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┹': `${topYAxisFromTop}${THICK} ${leftMiddleXAxis}${THICK} ${rightMiddleXAxis}`,
|
||||||
// '┺': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┺': `${topYAxisFromTop} ${leftMiddleXAxis} ${rightMiddleXAxis}${THICK}`,
|
||||||
// '┻': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┻': `${topYAxisFromTop}${THICK} ${xAxis}${THICK}`,
|
||||||
// '┼': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┼': `${yAxis} ${xAxis}`,
|
||||||
// '┽': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┽': `${yAxis} ${leftMiddleXAxis}${THICK} ${rightMiddleXAxis}`,
|
||||||
// '┾': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┾': `${yAxis} ${leftMiddleXAxis} ${rightMiddleXAxis}${THICK}`,
|
||||||
// '┿': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'┿': `${yAxis} ${leftMiddleXAxis}${THICK} ${rightMiddleXAxis}${THICK}`,
|
||||||
// '╀': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'╀': `${yAxis}${THICK} ${xAxis}`,
|
||||||
// '╁': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'╁': `${yAxis}${THICK} ${leftMiddleXAxis}${THICK} ${rightMiddleXAxis}`,
|
||||||
// '╂': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'╂': `${yAxis} ${leftMiddleXAxis} ${rightMiddleXAxis}${THICK}`,
|
||||||
// '╃': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'╃': `${yAxis}${THICK} ${xAxis}${THICK}`,
|
||||||
// '╄': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'╄': `${yAxis} ${xAxis}`,
|
||||||
// '╅': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'╅': `${yAxis} ${leftMiddleXAxis}${THICK} ${rightMiddleXAxis}`,
|
||||||
// '╆': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'╆': `${yAxis} ${leftMiddleXAxis} ${rightMiddleXAxis}${THICK}`,
|
||||||
// '╇': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'╇': `${yAxis} ${leftMiddleXAxis}${THICK} ${rightMiddleXAxis}${THICK}`,
|
||||||
// '╈': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'╈': `${yAxis}${THICK} ${xAxis}`,
|
||||||
// '╉': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'╉': `${yAxis}${THICK} ${leftMiddleXAxis}${THICK} ${rightMiddleXAxis}`,
|
||||||
// '╊': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'╊': `${yAxis} ${leftMiddleXAxis} ${rightMiddleXAxis}${THICK}`,
|
||||||
// '╋': `${MOVE}${} ${TO}${} ${TO}${}`,
|
'╋': `${yAxis}${THICK} ${xAxis}${THICK}`
|
||||||
// '╌': `${MOVE}${} ${TO}${} ${TO}${}`,
|
// '╌': `${MOVE}${} ${TO}${} ${TO}${}`,
|
||||||
// '╍': `${MOVE}${} ${TO}${} ${TO}${}`,
|
// '╍': `${MOVE}${} ${TO}${} ${TO}${}`,
|
||||||
// '╎': `${MOVE}${} ${TO}${} ${TO}${}`,
|
// '╎': `${MOVE}${} ${TO}${} ${TO}${}`,
|
||||||
@@ -372,7 +381,7 @@ export function draw(ctx: CanvasRenderingContext2D, c: string, xOffset: number,
|
|||||||
}
|
}
|
||||||
const numX = Number.parseFloat(coords[0].toString()) || Number.parseInt(coords[0].toString());
|
const numX = Number.parseFloat(coords[0].toString()) || Number.parseInt(coords[0].toString());
|
||||||
const numY = Number.parseFloat(coords[1].toString()) || Number.parseInt(coords[1].toString());
|
const numY = Number.parseFloat(coords[1].toString()) || Number.parseInt(coords[1].toString());
|
||||||
if (instruction.endsWith(BOLD)) {
|
if (instruction.endsWith(THICK)) {
|
||||||
ctx.lineWidth = lineWidth * 2;
|
ctx.lineWidth = lineWidth * 2;
|
||||||
} else {
|
} else {
|
||||||
ctx.lineWidth = lineWidth;
|
ctx.lineWidth = lineWidth;
|
||||||
|
|||||||
@@ -149,7 +149,12 @@ export abstract class CoreTerminal extends Disposable implements ICoreTerminal {
|
|||||||
// this.write('▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇');
|
// this.write('▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇');
|
||||||
this.write('━━│┃\r\n');
|
this.write('━━│┃\r\n');
|
||||||
this.write(' ━━│┃┌┍┎┏\r\n');
|
this.write(' ━━│┃┌┍┎┏\r\n');
|
||||||
this.write(' ━━│┃┌┐┍┑┎┒┏┓');
|
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);
|
}, 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user