diff options
| author | Hanjie Wu <hanjiew@andrew.cmu.edu> | 2023-04-24 00:02:27 -0400 |
|---|---|---|
| committer | Hanjie Wu <hanjiew@andrew.cmu.edu> | 2023-04-24 00:02:27 -0400 |
| commit | e021b8f12ad129c0bdbda3111bb93a170e21ae41 (patch) | |
| tree | 229879c8f03278388b2140ce5ce016c0354df0f0 /kern/toad.c | |
| parent | 4e6e2ced7f047a9a0439eb6d001b1a77daadfdff (diff) | |
new console
Diffstat (limited to 'kern/toad.c')
| -rw-r--r-- | kern/toad.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/kern/toad.c b/kern/toad.c index 96cf60f..7288375 100644 --- a/kern/toad.c +++ b/kern/toad.c @@ -57,14 +57,7 @@ const char toad[] = "........:^!J5PBBBBBB"; void print_toad() { - pts_t* pts = smalloc(sizeof(pts_t)); - pts_init(pts); - get_current()->pts = pts; - pts->refcount++; - - active_pts = pts; - pts->refcount++; - + pts_t* pts = get_current()->pts; pts_set_cursor(pts, 0, 0); pts_set_term_color(pts, FGND_WHITE | BGND_BLACK); pts_putbytes(pts, toad, sizeof(toad) - 1); |
