mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 14:58:30 +00:00
Remove some includes
This commit is contained in:
parent
75832f7379
commit
6bb9ce553e
30 changed files with 52 additions and 118 deletions
|
@ -18,7 +18,6 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/log/check.h"
|
||||
#include "libc/macros.internal.h"
|
||||
#include "libc/math.h"
|
||||
#include "libc/mem/mem.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/str/unicode.h"
|
||||
|
@ -43,8 +42,8 @@ void PrintMessageBox(int fd, const char *msg, long tyn, long txn) {
|
|||
AppendLines(lines, msg);
|
||||
h = 3 + lines->n + 3;
|
||||
w = 4 + GetWidthOfLongestLine(lines) + 4;
|
||||
x = lrint(txn / 2. - w / 2.);
|
||||
y = lrint(tyn / 2. - h / 2.);
|
||||
x = (txn / 2. - w / 2.) + .5;
|
||||
y = (tyn / 2. - h / 2.) + .5;
|
||||
bzero(&b, sizeof(b));
|
||||
AppendFmt(&b, "\e[%d;%dH", y++, x);
|
||||
for (i = 0; i < w; ++i) AppendStr(&b, " ");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue