Skip to content
This repository has been archived by the owner on May 12, 2024. It is now read-only.

Commit

Permalink
Update tty.c
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinAlavik authored Mar 24, 2024
1 parent 347dde8 commit c98686b
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion kernel/tty/tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,20 @@ int tty_spawn(uint8_t id)
return 1;

tty temp;
struct nighterm_ctx context;
int s = nighterm_initialize(&context,
NULL,
framebuffer->address,
framebuffer->width,
framebuffer->height,
framebuffer->pitch,
framebuffer->bpp,
malloc, free);
if(s != NIGHTERM_OK)
return 2;


temp.id = id;
temp.context = &context;
ttys[id] = &temp;
return 0;
}

0 comments on commit c98686b

Please sign in to comment.