Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

resize term-ncurses

Status
Not open for further replies.

halfbarrel

Programmer
Jun 12, 2002
44
US
Hello,
Is there a way to resize a terminal in ncurses? I know that there are functions like resizeterm which I believe tries to handle resizing the windows within a term when a resize event happens, but what I interested in is actually resizing my current term which is about 150X40 characters to something much larger like 500x500. Let me know if this is possible.
Thanks,

Chris.
 
Don't quite understand what you're asking.

If you have a graphical display, an xterm is a window on that display. Within that xterm you can have smaller windows.

resizeterm is for resizing the xterm, which is, I believe what you're asking for. The problem is that if your display cannot take an xterm that size, I don't know what happens.
 
Yes, I would actually like to resize the terminal, but I'm kind of lost on how to do it. I tried playing around with the resizeterm function, but didn't have any luck(tried all different sizes from small to big). If you have any ideas let me know.
Thanks,

Chris.
 
resizeterm will only work if the environment variables LINES and COLUMNS are not set. If they are set, resizeterm will ignore the settings you give and take the ones from LINES and COLUMNS.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top