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 <[EMAIL PROTECTED]>
+- Added font_80/font_132 support to py5250.py, as well.
+
2001-01-04 Scott Klement <[EMAIL PROTECTED]>
- 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