not sure why i misnamed the prompt
This commit is contained in:
parent
8e8f85fc53
commit
46169f8c6f
1 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ pub fn main() !void {
|
|||
, .{});
|
||||
var buffer: [256]u8 = undefined;
|
||||
while (true) {
|
||||
modeLine(&cpu, &memory);
|
||||
prompt(&cpu, &memory);
|
||||
const line = try input.readUntilDelimiterOrEof(&buffer, '\n');
|
||||
const clean = std.mem.trim(u8, line.?, " \n\r");
|
||||
var it = std.mem.splitSequence(u8, clean, " ");
|
||||
|
@ -64,7 +64,7 @@ pub fn main() !void {
|
|||
_ = try output.writeAll("\x1b[?25h");
|
||||
}
|
||||
|
||||
fn modeLine(cpu: *cpu_.Cpu, memory: *mem.Memory) void {
|
||||
fn prompt(cpu: *cpu_.Cpu, memory: *mem.Memory) void {
|
||||
_ = memory;
|
||||
std.debug.print(
|
||||
\\
|
||||
|
|
Loading…
Reference in a new issue