Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Another bit of info...

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming
View previous topic :: View next topic  
Author Message
Bazza
LXF regular


Joined: Sat Mar 21, 2009 11:16 am
Posts: 1473
Location: Loughborough

PostPosted: Sun Jan 13, 2013 4:30 pm    Post subject: Another bit of info... Reply with quote

Hi guys and gals...

I would like another piece of info from all who wish to participate...

1) From your Linux desktop open up a terminal of your choice.
2) Shift this default terminal window to as close to the upper left hand corner as it will go on your desktop.
3) From the prompt type:
****$ printf "\x1B[8;200;300t"<CR>
4) Also type:-
****$ stty size<CR>

And let me have your two values...
5) Close down your terminal...

On this MBP they are 46 and 179.

TIA...
_________________
73...

Bazza, G0LCU...

Team AMIGA...
Back to top
View user's profile Send private message
purplepenguin
LXF regular


Joined: Wed Oct 05, 2011 3:19 pm
Posts: 121
Location: Blissfully at the Command Line

PostPosted: Sun Jan 13, 2013 4:41 pm    Post subject: Reply with quote

Code:
lee@mainpc:~$ printf "\x1B[8;200;300t"
lee@mainpc:~$ stty size
55 207
Back to top
View user's profile Send private message
guy
LXF regular


Joined: Thu Apr 07, 2005 1:07 pm
Posts: 1068
Location: Worcestershire

PostPosted: Sun Jan 13, 2013 4:47 pm    Post subject: Reply with quote

26 112
_________________
Cheers,
Guy
The eternal help vampire
Back to top
View user's profile Send private message
MartyBartfast
LXF regular


Joined: Mon Aug 22, 2005 8:25 am
Posts: 814
Location: Hants, UK

PostPosted: Sun Jan 13, 2013 5:27 pm    Post subject: Reply with quote

200 300

and yes it is a huge terminal that's gone beyond the bounds of the screen.
_________________
I have been touched by his noodly appendage.
Back to top
View user's profile Send private message
Bazza
LXF regular


Joined: Sat Mar 21, 2009 11:16 am
Posts: 1473
Location: Loughborough

PostPosted: Sun Jan 13, 2013 5:56 pm    Post subject: Reply with quote

Hi guys...

Thanks for trying...

You guys who take the plunge to do little snippets like this for me are effectively doing beta testing for my projects.

I find out lots about different shells and never take anything for granted.

1) purplepenguine: your values were what I expected...
2) guy: I am assuming you're running something like a netbook?
3) MBF: Yours has told me NOT to use the Esc sequence to maximise so everything now centres around the standard 80 x 24 or 80 x 25 sizes... I will probably use it just to get one extra line to 80 x 25...

Thanks guys...
_________________
73...

Bazza, G0LCU...

Team AMIGA...
Back to top
View user's profile Send private message
roseway
LXF regular


Joined: Thu Jan 18, 2007 2:27 pm
Posts: 445

PostPosted: Sun Jan 13, 2013 7:06 pm    Post subject: Reply with quote

One more for you:

eric@chaffinch:~$ printf "\x1B[8;200;300t"
eric@chaffinch:~$ stty size
28 136
eric@chaffinch:~$
_________________
Eric
Back to top
View user's profile Send private message
johnhudson
LXF regular


Joined: Wed Aug 03, 2005 2:37 pm
Posts: 870

PostPosted: Sun Jan 13, 2013 9:57 pm    Post subject: Reply with quote

36 126
With KDE konsole in full screen mode - just happened to be how I left it.
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8449
Location: Warrington, UK

PostPosted: Sun Jan 13, 2013 11:04 pm    Post subject: Reply with quote

Using Konsole here, the window size did not change but the contents scrolled up several pages leaving me with a blank prompt. The output was 200 300. I needed reset to make the terminal usable again.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
Nuke
LXF regular


Joined: Wed Feb 09, 2011 12:11 pm
Posts: 217
Location: Chepstow, UK

PostPosted: Mon Jan 14, 2013 10:30 am    Post subject: Reply with quote

Using Konsole on Mepis, almost same as Nelz got. After the first command, the cursor ended up several blank screens below the prompt, indented as if the prompt was there but invisible. Anything I typed was echoed back at the prompt (if I scrolled back to check) but the focus would fly back to the cursor position, which moved as you typed but its area remained blank. The window did not change size or anything.

The output was :- 300 200 (NOT 200 300).
_________________
Unsolved mysteries of the Universe, No 13 :-
How many remakes of Anna Karenina does the World need?
Back to top
View user's profile Send private message
Bazza
LXF regular


Joined: Sat Mar 21, 2009 11:16 am
Posts: 1473
Location: Loughborough

PostPosted: Mon Jan 14, 2013 2:02 pm    Post subject: Reply with quote

Hi RW, JH, nelz and Nuke...

I was aware of any pitfalls but did not expect so many from I think seven replies. Looks like my project will have to stay inside a standard 80 x 24 window...

Thanks to all for taking part and doing _risky_ things for me but I never assume that anything is universal and this little snippet is not...

Once again all thanks and this thread can now be closed...
_________________
73...

Bazza, G0LCU...

Team AMIGA...
Back to top
View user's profile Send private message
guy
LXF regular


Joined: Thu Apr 07, 2005 1:07 pm
Posts: 1068
Location: Worcestershire

PostPosted: Tue Jan 15, 2013 9:10 am    Post subject: Reply with quote

Bazza wrote:
2) guy: I am assuming you're running something like a netbook?


Nope. Just an ancient LCD monitor I bought years ago - shop-soiled packaging but high quality Dell model of the day: 1024 x 768 or not much better, I can't recall exactly. The PC is a bit newer - a basic homebuild, nothing special. The sort of cheapskate system that only Linux can breathe life into in today's world.
_________________
Cheers,
Guy
The eternal help vampire
Back to top
View user's profile Send private message
Ram
LXF regular


Joined: Thu Apr 07, 2005 10:44 pm
Posts: 1667
Location: Guisborough

PostPosted: Tue Jan 15, 2013 9:43 am    Post subject: Reply with quote

For what its worth my figures are

55 206

But was not quite max size, maxing it I got size of 55 207

Now if I dragged the terminal off the left hand a touch I got a huge terminal of 200 * 300
_________________

lubuntu LXDE 13.10 running on AMD Phenom II*4; ASUS Crosshair III Formula MB; 4 GB Ram.....
Back to top
View user's profile Send private message MSN Messenger
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast