The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
Keyss

怎么在 console 输出时可以分区块更新内容?

  •  
  •   Keyss · Jun 17, 2019 · 3569 views
    This topic created in 2549 days ago, the information mentioned may be changed or developed.

    如图所示,经常看到这样展示的程序,但是不知道该怎么写代码 只知道\r 可以刷新本行

    这样刷新全屏幕到底是怎么实现的?不可能是一次刷一屏吧?尝试了很多种方法都弄不出来,求解

    jietu

    https://github.com/robaho/go-trader

    这个项目是用 go 写的,应该是简单的控制台输出吧?

    console 不能修改上一行的内容,所以这所有的文本应该是在同一行输出的吧?

    5 replies    2019-06-17 18:33:59 +08:00
    janxin
        1
    janxin  
       Jun 17, 2019
    Text-Based User Interfaces google 搜索一下“ golang tui ”
    Keyss
        2
    Keyss  
    OP
       Jun 17, 2019
    @janxin 谢谢,终于是一个靠谱的答案了,我真的是孤陋寡闻啊
    Cooky
        4
    Cooky  
       Jun 17, 2019 via Android
    最底层的就 curses 库
    Keyss
        5
    Keyss  
    OP
       Jun 17, 2019
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3118 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 14:35 · PVG 22:35 · LAX 07:35 · JFK 10:35
    ♥ Do have faith in what you're doing.