anchor.diff:  %%% Log event handler callback functions
   %%%----------------------------------------------------------------------
   
  --spec init(term()) -> {'ok', log:state()}.
  +-spec init(term()) -> {'ok', state()}.
   
   %% @doc: Initialize the event handler.
   %% Note: The wx environment is set once in this function and is subsequently
  
positive.code:     wx:set_env(Env),
      {ok, []}.
  
  -spec terminate(term(), log:state()) -> 'ok'.
  
  terminate(_Reason, _State) ->
      ok.
  
  -spec handle_event(log:event(), log:state()) -> {'ok', log:state()}.
  
  handle_event({msg, String}, State) ->
      LogText = ref_lookup(?LOG_TEXT),
  
negative.code: -include_lib("wx/include/wx.hrl").
  -include("gen.hrl").
  -include("gui.hrl").
  
  %% Log event handler internal state.
  -type state() :: [].
  
  %%%----------------------------------------------------------------------
  %%% UI functions
  