Click to See Complete Forum and Search --> : Terminal size
renjithvr24
September 18th, 2007, 10:54 AM
hi,
can anybody tell, how can we display data according to terminal size using c++.Also is it possible to create scrollbars in terminal ?
Renjith
olivthill
September 19th, 2007, 08:51 AM
- What kind of "terminals" do you have?
- What is your operating system?
- What kind of size (size of the screen or size of a window, and if so size with or without the frame of the window, size in inches or in number of pixels) ?
You should be able to get the size in number of pixels of your screen or of your current window quite easily, but having the size in inches or in centimeters will be more difficult and even impossible in some cases.
renjithvr24
September 20th, 2007, 11:43 AM
thank u for ur reply.
I am using kubuntu O.S.Terminal is Konsole.(terminal program).
My applcation produce output in an aligned matter only if the console is maximized.Otherwise it is meaningless.So is there any way to Fix the size of terminal according to data.I am working in c++.Also any idea to make any scrollbar inside terminal?.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.