sennenki/pretty_prompt/ports does not have a README file

    ClipboardPort

    pub(open) trait ClipboardPort {
    read_text(Self) -> String raise ClipboardPortError
    write_text(Self, String) -> Unit raise ClipboardPortError
    }

    ConsolePort

    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
    }

    ClipboardPortError

    pub(all) suberror ClipboardPortError {
    NotAvailable
    PermissionDenied
    BackendFailure(String)
    } derive(Eq,
    Debug
    )

    CancelController

    pub struct CancelController {
    console : &ConsolePort
    cancellation_requested :
    Ref
    [Bool]
    handler_id : Int
    }

    CancelController::dispose

    fn CancelController::dispose(self : CancelController) -> Unit

    CancelController::is_cancellation_requested

    fn CancelController::is_cancellation_requested(self : CancelController) -> Bool

    CancelController::new

    CancelController::set_mode

    fn CancelController::set_mode(self : CancelController, mode : ControlCMode) -> Unit

    CancelController::take_cancellation_requested

    fn CancelController::take_cancellation_requested(self : CancelController) -> Bool

    ControlCMode

    pub(all) enum ControlCMode {
    CaptureAsInput
    AllowCancelSignal
    } derive(Eq,
    Debug
    )

    Ports

    pub struct Ports {
    console : &ConsolePort
    clipboard : &ClipboardPort
    }

    Ports::new

    fn Ports::new(console : &ConsolePort, clipboard : &ClipboardPort) -> Ports

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io