Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New lines with \n instead of | #15

Closed
alex-page opened this issue Sep 13, 2018 · 1 comment
Closed

New lines with \n instead of | #15

alex-page opened this issue Sep 13, 2018 · 1 comment

Comments

@alex-page
Copy link

alex-page commented Sep 13, 2018

When using CFonts.say() I think it would be nice to be able to add a new line. An example of this might be:

CFonts.say( `Please some stuff \n Some stuff on a new line`, {
  font:  'console',
  align: 'center',
  colors: [ 'white' ],
});

I understand that you can do:

CFonts.say( `Please some stuff | Some stuff on a new line`, {
  font:  'console',
  align: 'center',
  colors: [ 'white' ],
});

Happy for this to be closed if it's not possible. I just thought it would be nice to mimic default console.log behaviour in this instance.

@dominikwilkowski
Copy link
Owner

The reason we use the pipe character for the new line | is because slashes inside a shell have to be escaped and become quickly unwieldy. So given that this is the lowest common denominator I decided that consistency would be best for the API. But maybe I can add that as well?

@alex-page alex-page changed the title New lines inside CFonts.say() New lines with \n instead of | Sep 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants