LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 03-24-2013, 05:54 PM   #1
trist007
Member
 
Registered: May 2008
Distribution: Slackware
Posts: 972

Rep: Reputation: 56
A question about Ncurses wattron(body, A_REVERSE) in C...


This will be a vague question so I'm hoping somebody experienced with Ncurses can help.

I have a pad named body that I print arrays of data onto.

On one array, when I call
Code:
wattron(body, A_REVERSE);
Only the first element of the array gets highlighted(reversed) which is what I want.

However, on another array that I have, when I call this function, instead of just the 1 element of the array being highlighted, all of the elements are highlighted.

I am trying to figure out what causes this. I have compared both functions for each array and they both look similar.

-Tristan
 
Old 03-25-2013, 12:08 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,417
Blog Entries: 2

Rep: Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995
Without having any code and the data you use it is simply impossible to help you with that.
 
  


Reply


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
Question about chapter 6.19 ncurses?? adi_30stm Linux From Scratch 3 07-24-2011 10:58 AM
Grep data inside <body>*</body> only tpubcom Linux - Newbie 3 10-11-2009 06:19 PM
Hello every body, i'm using redhat linux I don't know about samba server any body seenas Linux - Newbie 2 07-04-2009 03:47 AM
nCurses getch() question alpha_gamma Programming 7 03-07-2007 07:30 PM
how to print text in color by ncurses without opening a ncurses window Greatrebel Programming 0 12-20-2006 09:15 AM


All times are GMT -5. The time now is 02:04 PM.

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