kahkhang / Inquirer.sh

Modern terminal prompt inspired by inquirer.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pressing ctrl-c while in execution leaves cursor in mid of entries, preserve screen and place cursor at end

sudhakar-mnsr opened this issue · comments

If we press ctrl-c during execution the final position of the cursor can be improved. Ideally preserve the screen and place the cursor at the end of screen.
Steps to recreate:

  1. execute ./examples/showcase_example.sh
  2. give some input to first name and press enter
  3. when the screen prompts for hawker centers press ctrl-c
    The final position of screen is as shown
    Screenshot 2019-10-21 at 12 50 50