Added runtime tests for TTY

Removed types
Styling
Added printing error and multi line string for logo


Fix panic after rebase
This commit is contained in:
ED 2019-10-01 11:52:23 +01:00
parent 6ece9a8440
commit 60164d9252
6 changed files with 459 additions and 337 deletions

View file

@ -1,7 +1,7 @@
const builtin = @import("builtin");
const panic = @import("std").debug.panic;
const std = @import("std");
pub fn panicFmt(trace: ?*builtin.StackTrace, comptime format: []const u8, args: ...) noreturn {
pub fn panic(trace: ?*builtin.StackTrace, comptime format: []const u8, args: ...) noreturn {
@setCold(true);
panic(format, args);
std.debug.panic(format, args);
}

View file

@ -69,11 +69,11 @@ pub fn init() void {
// User defined mocked functions
pub fn mock_entryColour(fg: u4, bg: u4) u8 {
pub fn orig_entryColour(fg: u4, bg: u4) u8 {
return u8(fg) | u8(bg) << 4;
}
pub fn mock_entry(uc: u8, c: u8) u16 {
pub fn orig_entry(uc: u8, c: u8) u16 {
return u16(uc) | u16(c) << 8;
}