如何在C中使用setfillstyle()和textcolor() [英] How to use setfillstyle() and textcolor() in C
问题描述
我想在UBUNTU(terminal)中使用setfillstyle()和textcolor().
I want to use setfillstyle() and textcolor() in UBUNTU(terminal) .
但是我在互联网上发现它存储在conio.h库中,无法在UBUNTU中使用.
But I found on internet that it is store in conio.h library which cannot be used in UBUNTU .
那我该怎么办?
推荐答案
是的. setfillstyle
和textcolor
是旧的conio MS/DOS库的功能.如今,它只能在Windows控制台中使用(除非您设法使用真实的MS/DOS或FreeDOS ...).
That's true. setfillstyle
and textcolor
are functions of the old conio MS/DOS library. It can only be used nowadays in Windows consoles (unless you manage to use a real MS/DOS or FreeDOS...).
如果要在Linux终端窗口中使用色彩效果,可以看看Ubuntu中通常存在的并允许创建可移植程序的curses.
If you want to use color effect in a Linux terminal window, you could have a look at curses which normally exists in Ubuntu and allows to create portable programs.
这篇关于如何在C中使用setfillstyle()和textcolor()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!