console vc: fix historic issue in updatePromptWithIndex method [1]

[1] by checking history array count
set search input cursor color