I've tried this patch, and I don't like it.
It causes xt5250 to start up with a different font than usual, which I
don't like as much.
If I use the standard xterm ctrl-rightclick to change my font size back to
something that I like, it only stays that way until the next time I switch
to 132 col mode.
I think its a really bad idea to use a hard-coded font size & name inside
cursesterm. Instead, why don't we make this an option that can be set
in your configuration?
On Tue, 2 Jan 2001, Frank Richter wrote:
> tn5250 resizes the terminal window, when running in xterm. It would be
> nice, to additionally change the font, so that 80x25 and 132x27 modes
> fit well into available screen space.
>
> In order to achieve this, one would change cursesterm.c:
>
> --- cursesterm-original.c Tue Jan 2 12:44:08 2001
> +++ cursesterm.c Tue Jan 2 12:24:00 2001
> @@ -541,6 +541,10 @@
> if(This->data->is_xterm) {
> printf ("\x1b[8;%d;%dt", tn5250_display_height (display)+1,
> tn5250_display_width (display));
> + if(tn5250_display_width (display)>100) {
> + printf("\x1b]50;fixed\x07");
> + } else {
> + printf("\x1b]50;9x15\x07");
> }
> fflush (stdout);
> #ifdef HAVE_RESIZETERM
>
> Of course, it would be much nicer to have configuration options for the
> fonts, but I've no time to implement this yet.
> --
> Esda Feinstrumpffabrik GmbH
> Frank Richter, Leiter EDV
> Hauptstr. 76, D-09392 Auerbach
> E-Mail: [EMAIL PROTECTED]
> +---
> | 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]
> +---
>
+---
| 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]
+---