Moving subwindows in curses does not seem to work

M

Mitko Haralanov

Hi all,

I am attempting to learn curses programming and in the process have
created a small curses ui program. I am currently working on the code
which is handling resizing the terminal window.
As part of the resizing of the terminal window, I have to resize and
move some of the subwindows in my ui.
However, it doesn't seem to be working (the following is printed out
by my program into a logfile):

Parent size (y,x): 42,159
Height of subwin: 8
subwin size (y,x): 7,159
subwin coord (y,x): 35,0
sibwin size (y,x): 1,159
move to (y,x): 34, 0
subwin coord (y,x): 35,0
attempt resize to (y,x): 8,159

As you can see, the subwin's coordinates within the parent window do
not change before and after the move.

I have not been able to find any information why this might be
happening so if anyone could help, I'd be thankful.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top