implemented main menu

This commit is contained in:
Jonathan Lamothe
2019-08-20 10:41:15 -04:00
parent 3fab328e17
commit 1662705e4d
4 changed files with 53 additions and 5 deletions
+5 -1
View File
@@ -21,6 +21,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
module Mtlstats (initState, mainLoop) where
import Control.Monad (void)
import Control.Monad.Extra (whenM)
import Control.Monad.Trans.Class (lift)
import Control.Monad.Trans.State (StateT, get)
@@ -33,7 +34,10 @@ import Mtlstats.UI
-- | Initializes the progran
initState :: C.Curses ProgState
initState = return newProgState
initState = do
C.setEcho False
void $ C.setCursorMode C.CursorInvisible
return newProgState
-- | Main program loop
mainLoop :: StateT ProgState C.Curses ()