Eliminate use of feedkeys()