× 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: Python & swig
  • From: Scott Klement <klemscot@xxxxxxxxxxxx>
  • Date: Fri, 5 Jan 2001 11:43:05 -0600 (CST)


Okay, those xterm font support functions are added to py5250.py in this
patch.   Please apply the patch from the tn5250 directory, as it also
updates ChangeLog.

I don't really know why it's adding CR's to each line for you.  I tested
this myself, and as long as I use a UNIX mail client, I'm not having this
problem.  It is identifying it as "text/PLAIN" so your mail client may be
altering the end of line chars.... especially if you're using a Windows
client...  (I'm using pine)
 
Thanks!

On Fri, 5 Jan 2001, Jason Felice wrote:

> You should just be able to run py5250.py if the library and tn5250.py
> modules were installed in the right place.
> 
> The the shared library is the low-level C-like wrapper, the tn5250.py
> makes an attempt to object-orientify things and do things in a
> python-like manner.
> 
> You might want to add your font support functions to tn5250.py (the
> low-level wrappers have probably already been generated).
> 
> -Jason
diff -ur ../orig/ChangeLog ./ChangeLog
--- ../orig/ChangeLog   Fri Jan  5 08:25:29 2001
+++ ./ChangeLog Fri Jan  5 11:16:59 2001

@@ -1,3 +1,6 @@
+2001-01-05 Scott Klement <klemscot@klements.com>

+- Added font_80/font_132 support to py5250.py, as well.

+

 2001-01-04 Scott Klement <klemscot@klements.com>
 - Added xterm font support requested by Frank Richter
 - to use: set the font_80 and font_132 config options in ~/.tn5250rc
diff -ur ../orig/src/py5250.py ./src/py5250.py
--- ../orig/src/py5250.py       Fri Nov 10 10:38:54 2000
+++ ./src/py5250.py     Fri Jan  5 11:14:31 2001

@@ -55,6 +55,12 @@
        tn5250_curses_terminal_use_underscores (term,
             tn5250_config_get_bool (config, "underscores")
             )
+    if tn5250_config_exists (config, "font_80"):

+        if tn5250_config_exists (config, "font_132"):

+             tn5250_curses_terminal_set_xterm_font (term,

+                tn5250_config_get (config, "font_80"),

+                tn5250_config_get (config, "font_132")

+                )

     if tn5250_terminal_config (term, config) == -1:
        raise Error
 

As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.