LEFT | RIGHT |
1 #include <u.h> | 1 #include <u.h> |
2 #include <libc.h> | 2 #include <libc.h> |
3 #include <draw.h> | 3 #include <draw.h> |
4 #include <thread.h> | 4 #include <thread.h> |
5 #include <cursor.h> | 5 #include <cursor.h> |
6 #include <mouse.h> | 6 #include <mouse.h> |
7 #include <keyboard.h> | 7 #include <keyboard.h> |
8 #include <frame.h> | 8 #include <frame.h> |
9 #include <fcall.h> | 9 #include <fcall.h> |
10 #include <plumb.h> | 10 #include <plumb.h> |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 | 126 |
127 fontnames[0] = estrdup(fontnames[0]); | 127 fontnames[0] = estrdup(fontnames[0]); |
128 fontnames[1] = estrdup(fontnames[1]); | 128 fontnames[1] = estrdup(fontnames[1]); |
129 | 129 |
130 quotefmtinstall(); | 130 quotefmtinstall(); |
131 fmtinstall('t', timefmt); | 131 fmtinstall('t', timefmt); |
132 | 132 |
133 cputype = getenv("cputype"); | 133 cputype = getenv("cputype"); |
134 objtype = getenv("objtype"); | 134 objtype = getenv("objtype"); |
135 home = getenv("HOME"); | 135 home = getenv("HOME"); |
136 » shell = getenv("SHELL"); | 136 » acmeshell = getenv("acmeshell"); |
137 » if(shell == nil) | |
138 » » shell = "rc"; | |
139 p = getenv("tabstop"); | 137 p = getenv("tabstop"); |
140 if(p != nil){ | 138 if(p != nil){ |
141 maxtab = strtoul(p, nil, 0); | 139 maxtab = strtoul(p, nil, 0); |
142 free(p); | 140 free(p); |
143 } | 141 } |
144 if(maxtab == 0) | 142 if(maxtab == 0) |
145 maxtab = 4;· | 143 maxtab = 4;· |
146 if(loadfile) | 144 if(loadfile) |
147 rowloadfonts(loadfile); | 145 rowloadfonts(loadfile); |
148 putenv("font", fontnames[0]); | 146 putenv("font", fontnames[0]); |
(...skipping 928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1077 int | 1075 int |
1078 timefmt(Fmt *f) | 1076 timefmt(Fmt *f) |
1079 { | 1077 { |
1080 Tm *tm; | 1078 Tm *tm; |
1081 | 1079 |
1082 tm = localtime(va_arg(f->args, ulong)); | 1080 tm = localtime(va_arg(f->args, ulong)); |
1083 return fmtprint(f, "%04d/%02d/%02d %02d:%02d:%02d", | 1081 return fmtprint(f, "%04d/%02d/%02d %02d:%02d:%02d", |
1084 tm->year+1900, tm->mon+1, tm->mday, tm->hour, tm->min, tm->sec); | 1082 tm->year+1900, tm->mon+1, tm->mday, tm->hour, tm->min, tm->sec); |
1085 } | 1083 } |
1086 | 1084 |
LEFT | RIGHT |