Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Output doesn't mark italics, bold, monospace #49

Open
Roadcrosser opened this issue Sep 17, 2017 · 6 comments
Open

Output doesn't mark italics, bold, monospace #49

Roadcrosser opened this issue Sep 17, 2017 · 6 comments

Comments

@Roadcrosser
Copy link

As dumbfrotz purely outputs to console, I would assume stylings for italics, bold and monospace would be stripped.

Given its uses in places where such stylings are possible (e.g. IRC, Discord, Slack), it would be useful if there were a flag that caused outputs to include them.

Formatting could use the characters used in most IRC clients or ANSI escape codes (although the latter does not seem to have any support for monospace styling, given the nature of CLIs).

@DavidGriffith
Copy link
Owner

I'm not sure what you're suggesting here.

@Roadcrosser
Copy link
Author

IF games can use formatting styles like bold, italics and monospace that don't seem to be included in dfrotz's output.

I am suggesting that there be a flag that, when enabled, causes dfrotz to output formatting markers to identify bold, italics and monospace stylings for a script reading cout to format for other platforms.

@DavidGriffith
Copy link
Owner

I see now. I think I can do that.

@DavidGriffith
Copy link
Owner

What sort of formatting markers are you expecting? Something like this?

[ITALIC]This text is in italics.[/ITALIC]

@Roadcrosser
Copy link
Author

Like I said in the first post, the same ones used by IRC would suffice. That is, ASCII 0x02 for bold, ASCII 0x1D for italics and ASCII 0x11 for monospace. These characters would be used as toggles, and so wouldn't need closing.

@Roadcrosser
Copy link
Author

To clarify, I feel that tags like [ITALIC] may at some point clash with any game that might, for some reason, decided to print those kind of strings. In addition, using a string that long may affect the display of lines that use it because it may be significantly long enough that it affects the perceived length the line.

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

No branches or pull requests

2 participants