Changeset d9b0b972 for functions.c


Ignore:
Timestamp:
Dec 1, 2003, 3:22:54 PM (21 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
ad96951
Parents:
de22c3d
Message:
Fixed missing word in startup message
Better 'status' command
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    rf82e233 rd9b0b972  
    17771777  start=owl_global_get_starttime(&g);
    17781778
    1779   owl_fmtext_append_normal(&fm, "Version: ");
     1779  owl_fmtext_append_normal(&fm, "General Information:\n");
     1780
     1781  owl_fmtext_append_normal(&fm, "  Version: ");
    17801782  owl_fmtext_append_normal(&fm, OWL_VERSION_STRING);
    17811783  owl_fmtext_append_normal(&fm, "\n");
    17821784
    1783   sprintf(buff, "Screen size: %i lines, %i columns\n", owl_global_get_lines(&g), owl_global_get_cols(&g));
    1784   owl_fmtext_append_normal(&fm, buff);
    1785 
    1786   owl_fmtext_append_normal(&fm, "Startup Arugments: ");
     1785  owl_fmtext_append_normal(&fm, "  Startup Arugments: ");
    17871786  owl_fmtext_append_normal(&fm, owl_global_get_startupargs(&g));
    17881787  owl_fmtext_append_normal(&fm, "\n");
    1789   sprintf(buff, "Startup Time: %s", ctime(&start));
     1788  sprintf(buff, "  Startup Time: %s", ctime(&start));
    17901789  owl_fmtext_append_normal(&fm, buff);
    1791  
    17921790
    17931791  up=owl_global_get_runtime(&g);
     
    17981796  minutes=up/60;
    17991797  up-=minutes*60;
    1800   sprintf(buff, "Run Time: %i days %2.2i:%2.2i:%2.2i\n", days, hours, minutes, up);
     1798  sprintf(buff, "  Run Time: %i days %2.2i:%2.2i:%2.2i\n", days, hours, minutes, up);
    18011799  owl_fmtext_append_normal(&fm, buff);
    18021800
    1803   if (owl_global_get_hascolors(&g)) {
    1804     sprintf(buff, "Color: Yes, %i color pairs.\n", owl_global_get_colorpairs(&g));
    1805   } else {
    1806     sprintf(buff, "Color: No.\n");
    1807   }
    1808   owl_fmtext_append_normal(&fm, buff);
    1809 
     1801  owl_fmtext_append_normal(&fm, "\nProtocol Options:\n");
     1802  owl_fmtext_append_normal(&fm, "  Zephyr included    : ");
     1803  if (owl_global_is_havezephyr(&g)) {
     1804    owl_fmtext_append_normal(&fm, "yes\n");
     1805  } else {
     1806    owl_fmtext_append_normal(&fm, "no\n");
     1807  }
     1808  owl_fmtext_append_normal(&fm, "  AIM included       : yes\n");
     1809  owl_fmtext_append_normal(&fm, "  Loopback included  : yes\n");
     1810
     1811
     1812  owl_fmtext_append_normal(&fm, "\nBuild Options:\n");
     1813  owl_fmtext_append_normal(&fm, "  Stderr redirection : ");
     1814#if OWL_STDERR_REDIR
     1815  owl_fmtext_append_normal(&fm, "yes\n");
     1816#else
     1817  owl_fmtext_append_normal(&fm, "no\n");
     1818#endif
     1819 
     1820
     1821  owl_fmtext_append_normal(&fm, "\nMemory Usage:\n");
     1822  owl_fmtext_append_normal(&fm, "  Not currently available.\n");
    18101823  /*
    18111824  sprintf(buff, "%sMemory Malloced: %i\n", buff, owl_global_get_malloced(&g));
     
    18141827  */
    18151828
    1816   owl_fmtext_append_normal(&fm, "\n");
     1829  owl_fmtext_append_normal(&fm, "\nAIM Status:\n");
     1830  owl_fmtext_append_normal(&fm, "  Logged in: ");
    18171831  if (owl_global_is_aimloggedin(&g)) {
    1818     owl_fmtext_append_normal(&fm, "AIM: logged in as ");
    18191832    owl_fmtext_append_normal(&fm, owl_global_get_aim_screenname(&g));
    18201833    owl_fmtext_append_normal(&fm, "\n");
    18211834  } else {
    1822     owl_fmtext_append_normal(&fm, "AIM: not logged in\n");
    1823   }
     1835    owl_fmtext_append_normal(&fm, "(not logged in)\n");
     1836  }
     1837
     1838  owl_fmtext_append_normal(&fm, "  Processing events: ");
    18241839  if (owl_global_is_doaimevents(&g)) {
    1825     owl_fmtext_append_normal(&fm, "AIM: processing events\n ");
    1826   } else {
    1827     owl_fmtext_append_normal(&fm, "AIM: not processing events\n ");
     1840    owl_fmtext_append_normal(&fm, "yes\n");
     1841  } else {
     1842    owl_fmtext_append_normal(&fm, "no\n");
    18281843  }
    18291844
Note: See TracChangeset for help on using the changeset viewer.