@@ -1031,6 +1031,8 @@ process h fn (SetOpt ShowOrigErr) = setShowOrigErr True
1031process h fn (UnsetOpt ShowOrigErr) = setShowOrigErr False
1031process h fn (UnsetOpt ShowOrigErr) = setShowOrigErr False
1032process h fn (SetOpt AutoSolve) = setAutoSolve True
1032process h fn (SetOpt AutoSolve) = setAutoSolve True
1033process h fn (UnsetOpt AutoSolve) = setAutoSolve False
1033process h fn (UnsetOpt AutoSolve) = setAutoSolve False
1034+process h fn (SetOpt NoBanner) = setNoBanner True
1035+process h fn (UnsetOpt NoBanner) = setNoBanner False
1035process h fn (SetOpt _) = iPrintError "Not a valid option"
1037process h fn (SetOpt _) = iPrintError "Not a valid option"
1036process h fn (UnsetOpt _) = iPrintError "Not a valid option"
1038process h fn (UnsetOpt _) = iPrintError "Not a valid option"
@@ -1352,6 +1354,7 @@ idrisMain opts =
1352 setVerbose verbose
1354 setVerbose verbose
1353 setCmdLine opts
1355 setCmdLine opts
1354 setOutputTy outty
1356 setOutputTy outty
1357+ setNoBanner nobanner
1355 setCodegen cgn
1358 setCodegen cgn
1356 setTargetTriple trpl
1359 setTargetTriple trpl
1357 setTargetCPU tcpu
1360 setTargetCPU tcpu
@@ -1366,6 +1369,8 @@ idrisMain opts =
1366 (d:_) -> setIBCSubDir d
1369 (d:_) -> setIBCSubDir d
1367 setImportDirs importdirs
1370 setImportDirs importdirs
1372+ setNoBanner nobanner
1369 when (not (NoBasePkgs `elem` opts)) $ do
1374 when (not (NoBasePkgs `elem` opts)) $ do
1370 addPkgDir "prelude"
1375 addPkgDir "prelude"
1371 addPkgDir "base"
1376 addPkgDir "base"
@@ -1375,6 +1380,11 @@ idrisMain opts =
1375 return ()
1380 return ()
1376 when (not (NoPrelude `elem` opts)) $ do x <- loadModule stdout "Prelude"
1381 when (not (NoPrelude `elem` opts)) $ do x <- loadModule stdout "Prelude"
1377 return ()
1382 return ()
1384+ when (runrepl && not idesl) initScript
1386+ nobanner <- getNoBanner
1378 when (runrepl &&
1388 when (runrepl &&
1379 not quiet &&
1389 not quiet &&
1380 not idesl &&
1390 not idesl &&
@@ -1425,7 +1435,6 @@ idrisMain opts =
1426 when (runrepl && not idesl) $ do
1436 when (runrepl && not idesl) $ do
1427-- clearOrigPats
1437-- clearOrigPats
1429 startServer orig inputs
1438 startServer orig inputs
1430 runInputT (replSettings (Just historyFile)) $ repl orig inputs
1439 runInputT (replSettings (Just historyFile)) $ repl orig inputs
1431 when (idesl) $ ideslaveStart orig inputs
1440 when (idesl) $ ideslaveStart orig inputs