Search code examples
javascriptvisual-studio-codeconsoleline

How can I type Horizontal line in console in JavaScript?


I want to type Horizontal line like '-' 'ㅡ' ..

'-' this is dash(is underbar with shift.. _ ). it is too short

'ㅡ' this is korean. it is fine but still short

Is there any other way??

I am drawing a coordinate system on the console. I want horizontal and vertical lines of the same length

enter image description here


Solution

  • I can't directly answer your question but maybe an ASCII art npm package can help you? It supports drawing graphs with ASCII characters which can then be printed onto the console.