Changeset c1d166b
- Timestamp:
- Feb 11, 2009, 12:20:21 PM (16 years ago)
- Branches:
- master, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- a0e6082
- Parents:
- 57609b3
- git-author:
- Nelson Elhage <nelhage@mit.edu> (02/10/09 18:31:58)
- git-committer:
- Nelson Elhage <nelhage@mit.edu> (02/11/09 12:20:21)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
functions.c
r57609b3 rc1d166b 1849 1849 owl_fmtext_append_normal(&fm, "\n"); 1850 1850 1851 sprintf(buff, " Startup Time: %s", ctime(&start)); 1852 owl_fmtext_append_normal(&fm, buff); 1851 owl_fmtext_appendf_normal(&fm, " Startup Time: %s", ctime(&start)); 1853 1852 1854 1853 up=owl_global_get_runtime(&g); … … 1859 1858 minutes=up/60; 1860 1859 up-=minutes*60; 1861 sprintf(buff, " Run Time: %i days %2.2i:%2.2i:%2.2i\n", days, hours, minutes, up); 1862 owl_fmtext_append_normal(&fm, buff); 1860 owl_fmtext_appendf_normal(&fm, " Run Time: %i days %2.2i:%2.2i:%2.2i\n", days, hours, minutes, up); 1863 1861 1864 1862 owl_fmtext_append_normal(&fm, "\nProtocol Options:\n"); … … 1905 1903 { 1906 1904 owl_fmtext fm; 1907 char buff[LINE];1908 1905 1909 1906 owl_fmtext_init_null(&fm); 1910 sprintf(buff, "Terminal Lines: %i\nTerminal Columns: %i\n",1907 owl_fmtext_appendf_normal(&fm, "Terminal Lines: %i\nTerminal Columns: %i\n", 1911 1908 owl_global_get_lines(&g), 1912 1909 owl_global_get_cols(&g)); 1913 owl_fmtext_append_normal(&fm, buff);1914 1910 1915 1911 if (owl_global_get_hascolors(&g)) { 1916 1912 owl_fmtext_append_normal(&fm, "Color: Yes\n"); 1917 sprintf(buff, "Number of color pairs: %i\n", owl_global_get_colorpairs(&g)); 1918 owl_fmtext_append_normal(&fm, buff); 1919 sprintf(buff, "Can change colors: %s\n", can_change_color() ? "yes" : "no"); 1920 owl_fmtext_append_normal(&fm, buff); 1913 owl_fmtext_appendf_normal(&fm, "Number of color pairs: %i\n", owl_global_get_colorpairs(&g)); 1914 owl_fmtext_appendf_normal(&fm, "Can change colors: %s\n", can_change_color() ? "yes" : "no"); 1921 1915 } else { 1922 1916 owl_fmtext_append_normal(&fm, "Color: No\n");
Note: See TracChangeset
for help on using the changeset viewer.