Another bit of info...

Code junkies hangout here

Moderators: ChrisThornett, LXF moderators

Another bit of info...

Postby Bazza » Sun Jan 13, 2013 4:30 pm

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...
User avatar
Bazza
LXF regular
 
Posts: 1476
Joined: Sat Mar 21, 2009 11:16 am
Location: Loughborough

Postby purplepenguin » Sun Jan 13, 2013 4:41 pm

Code: Select all
lee@mainpc:~$ printf "\x1B[8;200;300t"
lee@mainpc:~$ stty size
55 207
purplepenguin
LXF regular
 
Posts: 133
Joined: Wed Oct 05, 2011 2:19 pm
Location: Blissfully at the Command Line

Postby guy » Sun Jan 13, 2013 4:47 pm

26 112
Cheers,
Guy
The eternal help vampire
User avatar
guy
LXF regular
 
Posts: 1078
Joined: Thu Apr 07, 2005 12:07 pm
Location: Worcestershire

Postby MartyBartfast » Sun Jan 13, 2013 5:27 pm

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.
User avatar
MartyBartfast
LXF regular
 
Posts: 816
Joined: Mon Aug 22, 2005 7:25 am
Location: Hants, UK

Postby Bazza » Sun Jan 13, 2013 5:56 pm

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...
User avatar
Bazza
LXF regular
 
Posts: 1476
Joined: Sat Mar 21, 2009 11:16 am
Location: Loughborough

Postby roseway » Sun Jan 13, 2013 7:06 pm

One more for you:

eric@chaffinch:~$ printf "\x1B[8;200;300t"
eric@chaffinch:~$ stty size
28 136
eric@chaffinch:~$
Eric
roseway
LXF regular
 
Posts: 450
Joined: Thu Jan 18, 2007 2:27 pm

Postby johnhudson » Sun Jan 13, 2013 9:57 pm

36 126
With KDE konsole in full screen mode - just happened to be how I left it.
johnhudson
LXF regular
 
Posts: 881
Joined: Wed Aug 03, 2005 1:37 pm

Postby nelz » Sun Jan 13, 2013 11:04 pm

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)
User avatar
nelz
Site admin
 
Posts: 8520
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

Postby Nuke » Mon Jan 14, 2013 10:30 am

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?
User avatar
Nuke
LXF regular
 
Posts: 217
Joined: Wed Feb 09, 2011 12:11 pm
Location: Chepstow, UK

Postby Bazza » Mon Jan 14, 2013 2:02 pm

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...
User avatar
Bazza
LXF regular
 
Posts: 1476
Joined: Sat Mar 21, 2009 11:16 am
Location: Loughborough

Postby guy » Tue Jan 15, 2013 9:10 am

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
User avatar
guy
LXF regular
 
Posts: 1078
Joined: Thu Apr 07, 2005 12:07 pm
Location: Worcestershire

Postby Ram » Tue Jan 15, 2013 9:43 am

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.....
User avatar
Ram
LXF regular
 
Posts: 1679
Joined: Thu Apr 07, 2005 9:44 pm
Location: Guisborough


Return to Programming

Who is online

Users browsing this forum: No registered users and 0 guests