In bash, you can get it by adding the following to your .inputrc (at least on mac terminal)
"\e[B": history-search-forward "\e[A": history-search-backward
"\e[C": forward-char "\e[D": backward-char
bindkey "^[[A" history-beginning-search-backward
bindkey "^[[B" history-beginning-search-forward
stty -ixon
[1] https://en.wikipedia.org/wiki/Software_flow_control
In bash, you can get it by adding the following to your .inputrc (at least on mac terminal)