term.widgets.confirm

term.widgets

confirm(title, opts) -> confirmed

Display a confirmation dialog and wait for yes/no

Opens a bordered dialog on the alternate screen. Use Left/Right arrows to switch between Yes and No buttons; confirm with Enter, y, or Y; cancel with n, N, or ESC. opts.rss can override widget styling. Returns true if the user confirmed, false otherwise.