Skip to content
This repository has been archived by the owner on Jun 15, 2019. It is now read-only.

Proposal for simplifying chars property #37

Open
qfox opened this issue Jul 19, 2017 · 2 comments
Open

Proposal for simplifying chars property #37

qfox opened this issue Jul 19, 2017 · 2 comments

Comments

@qfox
Copy link

qfox commented Jul 19, 2017

Instead of writing this:

  chars: { 'top': '═' , 'top-mid': '╤' , 'top-left': '╔' , 'top-right': '╗'
         , 'bottom': '═' , 'bottom-mid': '╧' , 'bottom-left': '╚' , 'bottom-right': '╝'
         , 'left': '║' , 'left-mid': '╟' , 'mid': '─' , 'mid-mid': '┼'
         , 'right': '║' , 'right-mid': '╢' , 'middle': '│' }

We could write this:

  chars: '╔═╤╗'
       + '║ │║'
       + '╟─┼╢'
       + '╚═╧╝'
@kleinfreund
Copy link

With this, overriding only some of the default characters becomes cumbersome.

@jamestalmage
Copy link
Owner

Also, it will be incredibly difficult to expand this with new characters (as in the "internal" characters for #42).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants