hwylterm/spin

Source   Edit  

Types

Spinny = ref object
  symbolPad*: Natural
Source   Edit  

Procs

proc echo(spinny: Spinny; text: string | BbString)
Source   Edit  
proc newSpinny(text: BbString; s: Spinner): Spinny {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
proc newSpinny(text: string | BbString = "";
               spinType: SpinnerKind = defaultSpinnerKind): Spinny
Source   Edit  
proc newSpinny(text: string; s: Spinner): Spinny {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
proc running(s: Spinny): bool {.inline, ...raises: [], tags: [], forbids: [].}
Source   Edit  
proc setSymbol(spinny: Spinny; symbol: string) {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
proc setSymbolColor(spinny: Spinny; style: string) {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
proc setText(spinny: Spinny; text: string | BbString)
Source   Edit  
proc start(spinny: Spinny) {....raises: [IOError, ResourceExhaustedError],
                             tags: [WriteIOEffect], forbids: [].}
Source   Edit  
proc stop(spinny: Spinny) {....raises: [IOError], tags: [WriteIOEffect],
                            forbids: [].}
Source   Edit  

Templates

template useSpinner(spinner: Spinny; body: untyped)
Source   Edit  
template with(kind: SpinnerKind; msg: BbString; body: untyped): untyped
Source   Edit  
template with(kind: SpinnerKind; msg: string; body: untyped): untyped
Source   Edit  
template withSpinner(body: untyped): untyped
Source   Edit  
template withSpinner(msg: BbString = bb""; body: untyped): untyped
Source   Edit  
template withSpinner(msg: string = ""; body: untyped): untyped
Source   Edit