Portable text based console manipulator

前端 未结 1 1681
北海茫月
北海茫月 2020-12-02 23:51

Applications can manipulate text based consoles or terminals, and change their colors, set cursor position,...

The supported approaches are:

  • For Un
相关标签:
1条回答
  • 2020-12-03 00:17

    Alright, i finally found a portable and easy to use library: rlutil.h

    Usage:

    #include <iostream>
    #include "rlutil.h"
    int main()
    {
        for (int i = 0; i < 16; i++)
        {
            rlutil::setColor(i);
            std::cout << i << " ";
        }
        std::cout << std::endl;
        return 0;
    }
    

    but, i will be glad for other suggestions.

    0 讨论(0)
提交回复
热议问题