cronvel / terminal-kit

Terminal utilities for node.js
MIT License
3.11k stars 201 forks source link

Display caret ^ (0x5e or ALT+94) #185

Closed S0urceror closed 3 years ago

S0urceror commented 3 years ago

Somehow Terminal Kit does not want to display the caret.

When I do terminal ("^") or terminal (String.fromCharCode(0x5e)) nothing happens.

cronvel commented 3 years ago

@S0urceror From the doc, use terminal.noFormat(str) to disable formatting. Without that, caret ^ is for markup and % for printf-like formatting. On normal mode, you could double caret to produce a single one ^^ (the same goes for percent %%).

S0urceror commented 3 years ago

Thanks for pointing this out! Sorry had to check the manual even more thoroughly.

From: Cedric Ronvel @.> Date: Saturday, 28 August 2021 at 09:53 To: cronvel/terminal-kit @.> Cc: S0urceror @.>, Mention @.> Subject: Re: [cronvel/terminal-kit] Display caret ^ (0x5e or ALT+94) (#185)

@S0urcerorhttps://github.com/S0urceror From the dochttps://github.com/cronvel/terminal-kit/blob/master/doc/low-level.md#modifiers, use terminal.noFormat(str) to disable formatting. Without that, caret ^ is for markuphttps://github.com/cronvel/terminal-kit/blob/master/doc/markup.md#top and % for printf-like formattinghttps://github.com/cronvel/terminal-kit/blob/master/doc/low-level.md#string-formatting.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/cronvel/terminal-kit/issues/185#issuecomment-907589643, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABGC6KHZBWSQKTODWP6E6YDT7CIYNANCNFSM5C62NY3Q. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.