class Thyme::Tmux
- Thyme::Tmux
- Reference
- Object
Overview
Handles communication with Tmux. Before/after all pomodoros, the status will be init/reset. Every second, the timer will call #set_status with the new label (eg "4:25 (3/4)").
Defined in:
thyme/tmux.crConstant Summary
-
STATUS_INTERVAL =
"status-interval"
-
TMUX_FILE =
"#{ENV["HOME"]}/.thyme-tmux"
-
TMUX_STATUS_VAL =
"'#(cat #{TMUX_FILE})'"
Constructors
Instance Method Summary
- #init_status
- #reset_status
-
#set_status(status)
Originally tried to set the status directly via a system call to tmux set-option, but ran into a consistent FileDescriptor and
END_OF_STACK
exceptions being raised.
Constructor Detail
Instance Method Detail
def set_status(status)
#
Originally tried to set the status directly via a system call to tmux set-option,
but ran into a consistent FileDescriptor and END_OF_STACK
exceptions being raised.
See https://github.com/crystal-lang/crystal/issues/3219