From 190e6483ae66769e031c9b1ef0ca75d5fabe3e26 Mon Sep 17 00:00:00 2001 From: etnt Date: Wed, 4 Jan 2006 09:33:20 +0000 Subject: Added a stop/0 function which doesn't halt the Erlang node. Right now it does a init:restart/0, but it should probably do something nicer. Also, added some info in the TOUR file. --- src/edit_lib.erl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/edit_lib.erl b/src/edit_lib.erl index 73372db..08fd0aa 100644 --- a/src/edit_lib.erl +++ b/src/edit_lib.erl @@ -588,6 +588,11 @@ quit(State) -> ?EDIT_TERMINAL:teardown(), halt(). +-command({stop, [], "Exit the editor process, without halting Erlang."}). +stop(State) -> + ?EDIT_TERMINAL:teardown(), + init:restart(). % FIXME , should do something nicer... (tobbe) + -command({printf, [{string, "String:"}], "Print a string to standard output (the file edit.out)"}). -- cgit v1.2.3