This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Printing Color Characters on Linux Console


On Aug 17, 1999, admin <admin@sanat.shirazu.ac.ir> wrote:

> 1)I want to write color characters on linux console.  I wanted to know if
> there is somethings like gotoxy() , textcolor() and cprintf() of borland c
> in gcc? I need both locating and color printing functions.

This is not a C *compiler* issue, it's a *library* issue, and gcc
doesn't contain a C library and, even if it did, it probably wouldn't
provide such functionality, since the GNU C Library doesn't.  For the
functionality you want, you should probably take a look at libraries
such as termcap or ncurses.

> 2) I want to lock files , as I read in Steven's Book on Network
> Programming there are two functions lockf() and flock() but I think
> none of them exists in gcc.

Both are implemented in the GNU C Library and in the Linux kernel.

> 3)What about BSD Sockets , does gcc use them ?

No, but it will let you call functions in the C library that implement
them.

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{dcc.unicamp.br,guarana.{org,com}} aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]