On Sunday 17 June 2001 19:00, Beat Rubischon wrote:
> Hello!
>
> Am 17.06.01 schrieb Martin Rowe:
> > Now onto the problem. I mentioned in the last email that my
> > home box doesn't show the full 27x132 screen.
>
> The window-resize is done before the fontswitch - the large font
> must be small enough to allow a window with 132x27. Whe you
> choose a font too large, the window is shrinked to a size less
> then 132x27...
>
> Greetings Beat
Hi Beat
Ahh. I see what you mean; the 24x80 font is used to determine the maximum
width.
font_80 = 9x15 ==> 27x113 :(
font_80 = 8x13 ==> 27x128 so close - where can I find a 7.75x13 font ;-)
font_80 = 7x13 ==> 27x132 which is the medium font for xterm anyway.
Digging about in cursesterm.c I found (I think) the code you were
speaking of and swapped it about. If I've used diff correctly (not used
it before) this is what I did.
mrowe@jamaro:~$ diff tn5250/src/cursesterm.c.old tn5250/src/cursesterm.c
578,579d577
< printf ("\x1b[8;%d;%dt", tn5250_display_height (display)+1,
< tn5250_display_width (display));
585c583,585
< }
---
> printf ("\x1b[8;%d;%dt", tn5250_display_height (display)+1,
> tn5250_display_width (display));
> }
As I don't know any C, I have no idea if it's a *Bad Thing*, but it
works. I can now use font_80 = 9x15 and font_132 = 7x13 and get the full
27x132 display :-)
Thanks for your help.
Regards, Martin
--
[EMAIL PROTECTED] / [EMAIL PROTECTED]
http://www.dbg400.net DBG/400 - DataBase Generation utilities
Open Source test environment tools for the AS/400 / iSeries and
miscellaneous database & spooled file management commands.
+---
| This is the LINUX5250 Mailing List!
| To submit a new message, send your mail to [EMAIL PROTECTED]
| To subscribe to this list send email to [EMAIL PROTECTED]
| To unsubscribe from this list send email to [EMAIL PROTECTED]
| Questions should be directed to the list owner/operator: [EMAIL PROTECTED]
+---