Clean up console
This commit is contained in:
1 parent
0568a813f2
commit
cb31e36e90
2 files changed
+32
-20
No files matched your search
+1
-20
@@ -28,30 +28,11 @@ private __gshared Header hulk_header = {
|
||||
extern(C) void hulk_start(ulong rdi, ulong rsi, ulong rdx, BootInfo * bootinfo)
|
||||
{
|
||||
fb.initialize(bootinfo.fb.buffer, bootinfo.fb.width, bootinfo.fb.height, bootinfo.fb.stride);
|
||||
fb.clear(0xFF8800u);
|
||||
|
||||
for (size_t y = 100u; y < 120u; y++)
|
||||
{
|
||||
memset32(&bootinfo.fb.buffer[y * bootinfo.fb.stride + 20u], 0x001199u, 20u);
|
||||
}
|
||||
|
||||
string message = "Hello, world! 0123456789!@#$%^&*()_-=+[]{};:\"'<>,./";
|
||||
int x = 100u;
|
||||
foreach (ch; message)
|
||||
{
|
||||
const(CharInfo) * ci = &kfont.chars[ch];
|
||||
fb.blend_alpha_bitmap(x + ci.left, 100 + ci.top - ci.height, ci.bitmap, ci.width, ci.height, 0x0088CCu);
|
||||
x += kfont.advance;
|
||||
}
|
||||
|
||||
console.initialize();
|
||||
console.clear();
|
||||
klog.initialize();
|
||||
|
||||
for (size_t i = 1u; i != 0u; i++)
|
||||
{
|
||||
klog.writef("Hello! i = %010u\n", i);
|
||||
}
|
||||
klog.writefln("Welcome to HULK, the HOS UltraLight Kernel!");
|
||||
|
||||
for (;;)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user