Skip to content

Commit

Permalink
Console: Styled output for the "version" command
Browse files Browse the repository at this point in the history
Todo for later: Using the style escape sequences this way is a bit
cumbersome. A more user-friendly HTML-like markup would be easier to
use, although it would require first parsing the markup into style
escape codes before entering into the log.
  • Loading branch information
skyjake committed Jun 7, 2013
1 parent 0ee092d commit 6041715
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions doomsday/client/src/con_main.cpp
Expand Up @@ -2266,9 +2266,13 @@ D_CMD(Version)
{
DENG2_UNUSED3(src, argc, argv);

Con_Printf("%s %s\n", DOOMSDAY_NICENAME, DOOMSDAY_VERSION_FULLTEXT);
Con_Printf("Homepage: %s\n", DOOMSDAY_HOMEURL);
Con_Printf("Project homepage: %s\n", DENGPROJECT_HOMEURL);
//Con_Printf("%s %s\n", DOOMSDAY_NICENAME, DOOMSDAY_VERSION_FULLTEXT);
//Con_Printf("Homepage: %s\n", DOOMSDAY_HOMEURL);
//Con_Printf("Project homepage: %s\n", DENGPROJECT_HOMEURL);

LOG_MSG(DENG2_ESC("D") DOOMSDAY_NICENAME " " DOOMSDAY_VERSION_FULLTEXT
DENG2_ESC("0") "\nHomepage: " DENG2_ESC("i") DOOMSDAY_HOMEURL
DENG2_ESC(".") "\nProject homepage: " DENG2_ESC("i") DENGPROJECT_HOMEURL);

// Print the version info of the current game if loaded.
if(App_GameLoaded())
Expand Down

0 comments on commit 6041715

Please sign in to comment.