【问题标题】:What are the diffrences between `tput cols`, `tput lines` and `stty size`?`tput cols`、`tput lines`和`stty size`之间有什么区别?
【发布时间】:2018-07-13 14:42:30
【问题描述】:

tput colstput linesstty size这样写有区别吗(除了stty size在一个字符串中返回全部)?

一个比另一个更便携或更可靠吗?

【问题讨论】:

    标签: terminal


    【解决方案1】:

    目前我也在问自己同样的问题。

    我在 linux 上看到的:

    • tput 取决于 ncurses
    • stty 依赖于 coreutils,coreutils 依赖于 ncurses

    恕我直言,tput 更加基本和便携。

    【讨论】:

      猜你喜欢
      • 2021-09-30
      • 1970-01-01
      • 1970-01-01
      • 2016-04-13
      • 2013-10-04
      • 2013-09-24
      • 2010-10-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多