open Sand let () = let open Editor in let cli = Config.parse Sys.argv in let editor = Editor.init cli in let rec loop () = Action.(render *> handle_next_command2 >>= loop) in Action.eval ~editor loop