Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 12-20-2006, 10:15 AM   #1
LQ Newbie
Registered: Dec 2006
Posts: 3

Rep: Reputation: 0
how to print text in color by ncurses without opening a ncurses window

hi all,

I want to print some output of c++ program in color. I know one way is escape sequences, but it is not
portable. So ncurses looks like better, since it hides the difference of terminals. I am wondering how to use ncurses without generating a new window. You know, once I use init_scr to start ncurse mode, a new window is generated, actually what I want to do is just changing color for some output in the origal terminal where I typed my command. Any idea will be appreciated.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
scrolling window in ncurses mayank_linux Programming 1 10-19-2006 07:03 PM
How to Change the Cursor Color in Ncurses mac57 Programming 0 04-02-2005 04:01 PM
ncurses window and keypad vegpl Programming 2 11-01-2004 03:00 AM
ncurses background color gtanghookup Programming 1 09-02-2003 09:17 PM
ncurses-5.2-28 conflicts with file from package ncurses-5.2-12 tubby Linux - Software 4 06-16-2002 01:00 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:00 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration