Changeset d9b0b972 for functions.c
- Timestamp:
- Dec 1, 2003, 3:22:54 PM (21 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
functions.c
rf82e233 rd9b0b972 1777 1777 start=owl_global_get_starttime(&g); 1778 1778 1779 owl_fmtext_append_normal(&fm, "Version: "); 1779 owl_fmtext_append_normal(&fm, "General Information:\n"); 1780 1781 owl_fmtext_append_normal(&fm, " Version: "); 1780 1782 owl_fmtext_append_normal(&fm, OWL_VERSION_STRING); 1781 1783 owl_fmtext_append_normal(&fm, "\n"); 1782 1784 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: "); 1787 1786 owl_fmtext_append_normal(&fm, owl_global_get_startupargs(&g)); 1788 1787 owl_fmtext_append_normal(&fm, "\n"); 1789 sprintf(buff, " Startup Time: %s", ctime(&start));1788 sprintf(buff, " Startup Time: %s", ctime(&start)); 1790 1789 owl_fmtext_append_normal(&fm, buff); 1791 1792 1790 1793 1791 up=owl_global_get_runtime(&g); … … 1798 1796 minutes=up/60; 1799 1797 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); 1801 1799 owl_fmtext_append_normal(&fm, buff); 1802 1800 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"); 1810 1823 /* 1811 1824 sprintf(buff, "%sMemory Malloced: %i\n", buff, owl_global_get_malloced(&g)); … … 1814 1827 */ 1815 1828 1816 owl_fmtext_append_normal(&fm, "\n"); 1829 owl_fmtext_append_normal(&fm, "\nAIM Status:\n"); 1830 owl_fmtext_append_normal(&fm, " Logged in: "); 1817 1831 if (owl_global_is_aimloggedin(&g)) { 1818 owl_fmtext_append_normal(&fm, "AIM: logged in as ");1819 1832 owl_fmtext_append_normal(&fm, owl_global_get_aim_screenname(&g)); 1820 1833 owl_fmtext_append_normal(&fm, "\n"); 1821 1834 } 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: "); 1824 1839 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"); 1828 1843 } 1829 1844
Note: See TracChangeset
for help on using the changeset viewer.