anchor.diff:  %% condition is fullfilled.
   %% 3b) Repeat (sequence): 2) is repeated either N times or until a
   %% halt condition is fullfilled.
  -teln_expect(Pid,Data,Pattern0,Prx,Opts) -> HaltPatterns = case
  -    get_ignore_prompt(Opts) of true -> get_haltpatterns(Opts); false
  -    -> [prompt | get_haltpatterns(Opts)] end,
  -
  +teln_expect(Pid,Data,Pattern0,Prx,Opts) -> 
  +    HaltPatterns = case get_ignore_prompt(Opts) of 
  +		       true -> 
  +			   get_haltpatterns(Opts); 
  +		       false -> 
  +			   [prompt | get_haltpatterns(Opts)] 
  +		   end,
  +    WaitForLineBreak = get_line_break_opt(Opts),
       Seq = get_seq(Opts),
       Pattern = convert_pattern(Pattern0,Seq),
  -
  +					   
       Timeout = get_timeout(Opts),
  - 
  +					   
       EO = #eo{teln_pid=Pid,
   	     prx=Prx,
   	     timeout=Timeout,
   	     seq=Seq,
  -	     haltpatterns=HaltPatterns},
  +	     haltpatterns=HaltPatterns,
  +	     wait_for_linebreak=WaitForLineBreak},
       
       case get_repeat(Opts) of
   	false ->
  
positive.code:     case lists:keysearch(timeout,1,Opts) of
  	{value,{timeout,T}} -> T;
  	false -> ?DEFAULT_TIMEOUT
      end.
  get_repeat(Opts) ->
      case lists:keysearch(repeat,1,Opts) of
  
negative.code: 		{Tag,Match} ->
  		    {Tag,Match,[]}
  	    end;
  	{noline,Rest} when NeedLineBreak =:= false ->
  	    case match_line(Rest,Patterns,FoundPrompt,EO) of
  		nomatch ->
  		    {nomatch,prompt};
  		{Tag,Match} ->
  		    {Tag,Match,[]}
  	    end;
  	{noline, Rest} ->
  	    {nomatch,Rest};
  	{Line,Rest} ->
  	    case match_line(Line,Patterns,false,EO) of
  