/sterm

Primary LanguageVMIT No AttributionMIT-0

simple term lib.

select (image)

Install

Usage

Select

import sterm { Selection }

fn main() {
	mut sel := Selection{
		items: ['a', 'b', 'c']
		idx: 0
		hide_cursor: true
	}
	sel.draw()
	sel.run()

	println('You selected "${sel.value()}"')
}

select (video)