Spec-Zone.ru › Pony

ANSITerm

[Source]

Handles ANSI escape codes from stdin.

actor tag ANSITerm

Constructors

create

[Source]

Create a new ANSI term.

new tag create(
  notify: ANSINotify iso,
  source: DisposableActor tag,
  timers: Timers tag = reference)
: ANSITerm tag^

Parameters

  • notify: ANSINotify iso
  • source: DisposableActor tag
  • timers: Timers tag = reference

Returns

  • ANSITerm tag^

Public Behaviours

apply

[Source]

Receives input from stdin.

be apply(
  data: Array[U8 val] iso)

Parameters

  • data: Array[U8 val] iso

prompt

[Source]

Pass a prompt along to the notifier.

be prompt(
  value: String val)

Parameters

  • value: String val

size

[Source]

be size()

dispose

[Source]

Stop accepting input, inform the notifier we have closed, and dispose of our source.

be dispose()

© 2016-2020, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/term-ANSITerm

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API