class

TextUi::UndoStack

Inherits Reference / Object

Class methods

redo_key
Source
redo_key=(key : UInt16)
Source
undo_key
Source
undo_key=(key : UInt16)
Source

Instance methods

can_redo?
Source
can_undo?
Source
clean_state?
Source
clear
Source
merge_interval

If the time between two mergeable commands happen is less than merge_interval, they will be merged into a single command. merge_interval is specified in milliseconds, default to 1000ms.

Source
merge_interval=(merge_interval : Int32)

If the time between two mergeable commands happen is less than merge_interval, they will be merged into a single command. merge_interval is specified in milliseconds, default to 1000ms.

Source
push(cmd : UndoCommand) : Nil
Source
redo
Source
set_clean_state
Source
size(*args, **options)
Source
size(*args, **options, &)
Source
undo
Source