linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Size of the terminal with curses
@ 2004-10-20 20:11 Tyler
  2004-10-21 12:05 ` Jan-Benedict Glaw
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Tyler @ 2004-10-20 20:11 UTC (permalink / raw)
  To: linux-c-programming

Hey,

How can I get the size of the terminal (in lines and cols) of the actual 
terminal ? It would be cool if the solution uses some curses function.

Thx


^ permalink raw reply	[flat|nested] 6+ messages in thread
* RE: Size of the terminal with curses
@ 2004-10-21 17:08 yiding_wang
  0 siblings, 0 replies; 6+ messages in thread
From: yiding_wang @ 2004-10-21 17:08 UTC (permalink / raw)
  To: tyler, linux-c-programming

The simplist way - run shell command "set", you will see some setting like 
...
COLUMNS=80 
...
LINES=25
...

It is an environment setting.

Eddie

-----Original Message-----
From: linux-c-programming-owner@vger.kernel.org
[mailto:linux-c-programming-owner@vger.kernel.org]On Behalf Of Tyler
Sent: Wednesday, October 20, 2004 1:11 PM
To: linux-c-programming@vger.kernel.org
Subject: Size of the terminal with curses


Hey,

How can I get the size of the terminal (in lines and cols) of the actual 
terminal ? It would be cool if the solution uses some curses function.

Thx

-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-10-21 23:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-20 20:11 Size of the terminal with curses Tyler
2004-10-21 12:05 ` Jan-Benedict Glaw
2004-10-21 13:03   ` Andrei Bunghez
2004-10-21 12:30 ` Progga
2004-10-21 23:06 ` simon
  -- strict thread matches above, loose matches on Subject: below --
2004-10-21 17:08 yiding_wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).