jart / bestline

ANSI Standard X3.64 Teletypewriter Command Session Library
Other
443 stars 29 forks source link

Add support for initial text #16

Closed xoich closed 1 year ago

xoich commented 2 years ago

This is like bash read -ei "initial text". It is useful if you want to prompt the user to edit some text without having to rewrite it, or awkwardly ask them to get it from history. Same as bash -ei, it only works if the terminal is supported.