mirror of
https://github.com/GothenburgBitFactory/taskshell.git
synced 2025-08-19 19:03:10 +02:00
Tasksh
- Implemented structure of main loop.
This commit is contained in:
parent
1647ca6b4d
commit
aacae1b1c6
1 changed files with 12 additions and 1 deletions
13
src/main.cpp
13
src/main.cpp
|
@ -29,6 +29,16 @@
|
|||
#include <cstring>
|
||||
#include <i18n.h>
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
static int commandLoop ()
|
||||
{
|
||||
// TODO Display prompt
|
||||
// TODO Wait for input
|
||||
// TODO Dispatch command
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
int main (int argc, const char** argv)
|
||||
{
|
||||
|
@ -43,7 +53,8 @@ int main (int argc, const char** argv)
|
|||
{
|
||||
try
|
||||
{
|
||||
// Umm...
|
||||
while ((status = commandLoop ()) == 0)
|
||||
;
|
||||
}
|
||||
|
||||
catch (const std::string& error)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue