Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
に次の関数があります~/.gdbinit。
~/.gdbinit
define foo echo \033[34m echo testing...\n echo \033[0m end
ただし、実行すると青色で印刷されますが、実行すると結果fooはgdb次 のようになります。testing...cgdb
foo
gdb
testing...
cgdb
[34mtesting... [0m
でカラー エスケープ コードを有効にするにはどうすればよいcgdbですか?
残念ながら、cgdb の gdb「ウィンドウ」は本格的な端末ではありません...基本的なテキスト I/O を処理できますが、色、カーソル移動などの端末エスケープ シーケンスはレンダリングされません。