Files
lk/app/shell/shell.c
Travis Geiselbrecht 89f9805277 [lib][console] move the state of the console into an object
This will allow in the future multiple instances of it to be active at
at a time. Place the current console in a new TLS slot per thread so
threads created as a side effect of console commands can properly run
commands.
2021-05-29 00:52:47 -07:00

26 lines
535 B
C

/*
* Copyright (c) 2009 Travis Geiselbrecht
*
* Use of this source code is governed by a MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT
*/
#include <app.h>
#include <lk/debug.h>
#include <lib/console.h>
static void shell_entry(const struct app_descriptor *app, void *args) {
console_t *con = console_create(true);
if (!con)
return;
console_start(con);
// TODO: destroy console and free resources
}
APP_START(shell)
.entry = shell_entry,
APP_END