2009-01-24 21:21:54 -08:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2009 Travis Geiselbrecht
|
|
|
|
|
*
|
2019-07-05 17:22:23 -07:00
|
|
|
* 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
|
2009-01-24 21:21:54 -08:00
|
|
|
*/
|
|
|
|
|
#include <app.h>
|
2019-06-17 18:28:51 -07:00
|
|
|
#include <lk/debug.h>
|
2009-01-24 21:21:54 -08:00
|
|
|
#include <lib/console.h>
|
|
|
|
|
|
2019-06-19 20:54:28 -07:00
|
|
|
static void shell_entry(const struct app_descriptor *app, void *args) {
|
2021-05-28 18:43:47 -07:00
|
|
|
console_t *con = console_create(true);
|
|
|
|
|
if (!con)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
console_start(con);
|
|
|
|
|
|
|
|
|
|
// TODO: destroy console and free resources
|
2009-01-24 21:21:54 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
APP_START(shell)
|
2019-06-19 20:54:28 -07:00
|
|
|
.entry = shell_entry,
|
|
|
|
|
APP_END
|
2009-01-24 21:21:54 -08:00
|
|
|
|