sennenki/pretty_prompt/ports does not have a README file
pub(open) trait ClipboardPort {
read_text(Self) -> String raise ClipboardPortError
write_text(Self, String) -> Unit raise ClipboardPortError
}pub(open) trait ConsolePort {
read_key(Self, intercept : Bool) -> ConsoleKeyInfo
key_available(Self) -> Bool
is_error_redirected(Self) -> Bool
get_cursor_top(Self) -> Int
get_cursor_left(Self) -> Int
get_buffer_width(Self) -> Int
get_window_height(Self) -> Int
get_window_top(Self) -> Int
write(Self, String) -> Unit
write_line(Self, String) -> Unit
write_error(Self, String) -> Unit
write_error_line(Self, String) -> Unit
clear(Self) -> Unit
show_cursor(Self) -> Unit
hide_cursor(Self) -> Unit
get_treat_control_c_as_input(Self) -> Bool
set_treat_control_c_as_input(Self, Bool) -> Unit
add_cancel_key_press_handler(Self, (ConsoleSpecialKey) -> Bool) -> Int
remove_cancel_key_press_handler(Self, Int) -> Unit
}pub struct CancelController {
console : &ConsolePort
cancellation_requested : Ref[Bool]
handler_id : Int
}Install
Download zipA pretty prompt library for Moonbit, providing an easy way to create interactive command-line interfaces with customizable prompts and input handling.
Dependencies