@@ -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"
@@ -1353,6 +1355,7 @@ idrisMain opts =
1353 setVerbose verbose
1355 setVerbose verbose
1354 setCmdLine opts
1356 setCmdLine opts
1355 setOutputTy outty
1357 setOutputTy outty
1358+ setNoBanner nobanner
1356 setCodegen cgn
1359 setCodegen cgn
1357 setTargetTriple trpl
1360 setTargetTriple trpl
1358 setTargetCPU tcpu
1361 setTargetCPU tcpu
@@ -1367,6 +1370,8 @@ idrisMain opts =
1367 (d:_) -> setIBCSubDir d
1370 (d:_) -> setIBCSubDir d
1368 setImportDirs importdirs
1371 setImportDirs importdirs
1373+ setNoBanner nobanner
1370 when (not (NoBasePkgs `elem` opts)) $ do
1375 when (not (NoBasePkgs `elem` opts)) $ do
1371 addPkgDir "prelude"
1376 addPkgDir "prelude"
1372 addPkgDir "base"
1377 addPkgDir "base"
@@ -1376,6 +1381,11 @@ idrisMain opts =
1376 return ()
1381 return ()
1377 when (not (NoPrelude `elem` opts)) $ do x <- loadModule stdout "Prelude"
1382 when (not (NoPrelude `elem` opts)) $ do x <- loadModule stdout "Prelude"
1378 return ()
1383 return ()
1385+ when (runrepl && not idesl) initScript
1387+ nobanner <- getNoBanner
1379 when (runrepl &&
1389 when (runrepl &&
1380 not quiet &&
1390 not quiet &&
1381 not idesl &&
1391 not idesl &&
@@ -1426,7 +1436,6 @@ idrisMain opts =
1427 when (runrepl && not idesl) $ do
1437 when (runrepl && not idesl) $ do
1428-- clearOrigPats
1438-- clearOrigPats
1430 startServer orig inputs
1439 startServer orig inputs
1431 runInputT (replSettings (Just historyFile)) $ repl orig inputs
1440 runInputT (replSettings (Just historyFile)) $ repl orig inputs
1432 when (idesl) $ ideslaveStart orig inputs
1441 when (idesl) $ ideslaveStart orig inputs