Bold text through C++ write statement
问题 I'm working on a dictionary server via telnet, and I'd like it to return it in this format: **word** (wordType): wordDef wordDef wordDef wordDef wordDef wordDef wordDef. Right now I'm outputting the code using: write( my_socket, ("%s", word.data() ), word.length() ); // Bold this write( my_socket, ("%s", theRest.data() ), theRest.length() ); So I'd like that first line to be bolded. Edit Sorry, I forgot to mention that this is for a command line. 回答1: Consider using using something like VT100