centred title screen
This commit is contained in:
@@ -28,13 +28,16 @@ import Data.Char (chr)
|
|||||||
import qualified UI.NCurses as C
|
import qualified UI.NCurses as C
|
||||||
|
|
||||||
import Mtlstats.Actions
|
import Mtlstats.Actions
|
||||||
|
import Mtlstats.Format
|
||||||
import Mtlstats.Types
|
import Mtlstats.Types
|
||||||
|
|
||||||
titleScreenC :: Controller
|
titleScreenC :: Controller
|
||||||
titleScreenC = Controller
|
titleScreenC = Controller
|
||||||
{ drawController = const $ do
|
{ drawController = const $ do
|
||||||
C.drawString $ unlines $ titleText ++
|
(_, cols) <- C.windowSize
|
||||||
[ ""
|
C.drawString $ unlines $ map (centre $ fromIntegral $ pred cols)
|
||||||
|
$ titleText
|
||||||
|
++ [ ""
|
||||||
, "Copyright (C) 1984, 1985, 2019, 2020 Rhéal Lamothe"
|
, "Copyright (C) 1984, 1985, 2019, 2020 Rhéal Lamothe"
|
||||||
, "<rheal.lamothe@gmail.com>"
|
, "<rheal.lamothe@gmail.com>"
|
||||||
, ""
|
, ""
|
||||||
|
|||||||
Reference in New Issue
Block a user