#Ruby, 51 bytes
Ruby, 51 bytes
x="";$><<x[-1]while/hello./!~x=x[/.{0,5}$/]+$<.getc
- Does not expect newlines
- Works with infinite input
#Ruby, 51 bytes
x="";$><<x[-1]while/hello./!~x=x[/.{0,5}$/]+$<.getc
- Does not expect newlines
- Works with infinite input
Ruby, 51 bytes
x="";$><<x[-1]while/hello./!~x=x[/.{0,5}$/]+$<.getc
- Does not expect newlines
- Works with infinite input
#Ruby, 5851 bytes
x=`stty raw`;$><<x[x="";$><<x[-1]while/hello./!~x=(x[-4~x=x[/.{0,4]||x)+$<5}$/]+$<.getc
- Does not expect newlines
- Echoes every single character
- Works with infinite input
#Ruby, 58 bytes
x=`stty raw`;$><<x[-1]while/hello/!~x=(x[-4,4]||x)+$<.getc
- Does not expect newlines
- Echoes every single character
- Works with infinite input
#Ruby, 51 bytes
x="";$><<x[-1]while/hello./!~x=x[/.{0,5}$/]+$<.getc
- Does not expect newlines
- Works with infinite input