1

Using Ruby, I'd like to produce a multiplexed terminal window whereby in one "sub" window I can dynamically update displayed data from the underlying application and in another "sub" window I can support user input for controlling the underlying application.

Is this possible with something like Pry or Readline/Coolline?

I can produce each window individually, I just don't know how to multiplex the terminal into two "sub" windows driven by the same application. I'd like to avoid having to use two separate terminal windows, which would require a multi-processed application.

4

1 回答 1

0

我认为正确的做法是合成单个整个窗口,所谓的“子窗口”是逻辑抽象,仅更新它们自己指定区域的数据,因此实际显示本质上是由主视图合成的.

于 2013-06-28T00:17:15.560 回答