Interactive list prompt for terminal with arrow key selection.
Inquirer rawlist prompt
$ import { createPrompt, RawListPrompt } from '@inquirer/rawlist'; const answer = await createPrompt(RawListPrompt)({ choices: ['Option 1', 'Option 2'] });$ const { rawlist } = require('inquirer'); rawlist({ name: 'selection', message: 'Choose one:', choices: ['Apple', 'Banana', 'Orange'] });$ const answer = await prompt({ type: 'rawlist', name: 'env', message: 'Select environment:', choices: ['Development', 'Staging', 'Production'] });$ rawlist({ message: 'What would you like to do?', choices: ['Create', 'Update', 'Delete', 'Exit'] }).then(answer => console.log(answer));$ const survey = new Inquirer.prompt([{ type: 'rawlist', name: 'rating', message: 'Rate this:', choices: ['Poor', 'Fair', 'Good', 'Excellent'] }]);