Howto Exit swift-language terminal mode
Type control-d
to exit REPL.
control-d
is the end of file character and it's used by various command line tools to mark the end of user input.
Added by a later editor
You can also quit the Swift REPL by typing :quit
, :q
, or :exit
You can also type :exit
, :quit
, or :q
at the Swift REPL prompt instead of control-d
. Type :help
at the Swift REPL for all available commands.