× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: 27x132 problem
  • From: Martin Rowe <martin@xxxxxxxxxx>
  • Date: Sun, 17 Jun 2001 21:25:29 +0100
  • Organization: Jamaro

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   
-- 
martin@dbg400.net / jamaro@firstlinux.net
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 LINUX5250@midrange.com.
| To subscribe to this list send email to LINUX5250-SUB@midrange.com.
| To unsubscribe from this list send email to LINUX5250-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.