Closed dbuenzli closed 5 years ago
If one has unsaved recorded phrases, down takes care to save them on exit and reload them on the ocaml invocation. This however only works if the user exits with C-d as we don't get the hand back on #quit.
down
ocaml
C-d
#quit
ocaml has a few life-cycle hooks but none of these happen at shutdown, likely something that should be considered in the context of https://github.com/ocaml/ocaml/issues/7589.
down could try to patch the #quit directive but so far we didn't need to fiddle with those so I'm a bit reluctant to get into this.
Well in fact an atexit handler could do.
atexit
And the same holds for history saving in fact.
If one has unsaved recorded phrases,
down
takes care to save them on exit and reload them on theocaml
invocation. This however only works if the user exits withC-d
as we don't get the hand back on#quit
.ocaml
has a few life-cycle hooks but none of these happen at shutdown, likely something that should be considered in the context of https://github.com/ocaml/ocaml/issues/7589.down
could try to patch the#quit
directive but so far we didn't need to fiddle with those so I'm a bit reluctant to get into this.