MailMan | 1 Jun 2005 13:30

Guidelines for LINUX5250 mailing list

Monthly posting of the guidelines for participation in the LINUX5250
Mailing List.

Answers to common questions, including installation issues for FreeBSD,
Linux and Windows are included in the documentation in the README file
in the source tarball, the manual included with the Windows installer,
and the other documentation found on our web site at
http://tn5250.sourceforge.net

Answers to other questions which may have already been asked are available in
the linux5250 email list archive, which is available at
http://archive.midrange.com/linux5250/

Keep to the subject.  The topic of the list is the Linux Tn5250
Emulation project.   (Though, the name "Linux" is a misnomer, since
the software will work in Microsoft Windows and any modern Unix or
Unix-like operating system)

When quoting messages, do not quote the entire message.  Just quote the
parts that are needed to make the appropriate references.

Flames are absolutely prohibited.  If you disagree with someone, feel
free to argue the facts, but no personal attacks will be tolerated.

The official language of the LINUX5250 Mailing List is English.

Do not post personal messages.  Please use direct E-Mail.  This list is
international in scope and personal messages just end up costing money.

Please do not use HTML to format messages ... not everyone has a HTML
(Continue reading)

Manuele R. | 3 Jun 2005 20:00
Picon
Favicon

Help BACKSPACE vs DELETE

Hi,

I've download and compile the tn5250 ver. 0.17.3 

It work fine, I've remapped the keyboard like IBM 3477 terminal keybord (Italian layout) but I don't know
why the BACKSPACE don't work (it go back but don't delete the caracter) [This in console mode]; in my
it5250.map there is:

keycode 14 = Delete

I've try this:

keycode 14 = "\033[4"
keycode 14 = "\177"

but DON'T WORK !!!!

(N.B.: in linux console BackSpace work FINE !!!)

I've try to use in XTERMINAL (for my curiosity) (by xt5250) and in this mode the backspace work adding in
XTerm file:

    <Key> BackSpace: string("\010\040\010") \n\

(BUT I DON'T WONNT TO USE X BECAUSE I HAVE MANY OLDEST PC)

Can you help me to resolve this problem?

ThankYau for your support.

(Continue reading)

James Rich | 3 Jun 2005 22:00

Re: Help BACKSPACE vs DELETE

On Fri, 3 Jun 2005, Manuele R. wrote:

> I've download and compile the tn5250 ver. 0.17.3
>
> It work fine, I've remapped the keyboard like IBM 3477 terminal keybord 
> (Italian layout) but I don't know why the BACKSPACE don't work (it go 
> back but don't delete the caracter) [This in console mode]; in my

This is because tn5250 uses a non-destructive backspace just like a real 
IBM 5250 terminal.  A quick search through the archives for 'destructive 
backspace' reveals that a little bit of coding is required to get what you 
want.  To get a destructive backspace, you need to edit display.c.  Around 
line 1576 you should see this code:

     case K_BACKSPACE:
       tn5250_display_kf_backspace (This);

Add the following line immediately after:

       tn5250_display_kf_delete (This);

Then recompile and install.  That should give you a destructive backspace.

If people want, I can add a feature for this that is user configurable at 
run time.  Should be pretty easy.

> (BUT I DON'T WONNT TO USE X BECAUSE I HAVE MANY OLDEST PC)

Wow - that must be some old PC.  I have an old 486 laptop with 16MB of RAM 
that I still use (and develop x5250 on just to be sure it works).  Even on 
(Continue reading)

Sean Porterfield | 4 Jun 2005 20:00

x5250 window shading

I'm mostly curious if this is intended behavior or not.  When a window 
popped up, the text to the right of that window changed color, as if the 
window were casting a shadow.  xt5250 does not have the same behavior.

http://linux.porterfield.net/x5250-window-color.png

I have not yet upgraded to x5250 0.5.1 (mine is the beta from May 17th.)

--

-- 
This is the Linux 5250 Development Project (LINUX5250) mailing list
To post a message email: LINUX5250@...
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/linux5250
or email: LINUX5250-request@...
Before posting, please take a moment to review the archives
at http://archive.midrange.com/linux5250.

James Rich | 5 Jun 2005 08:30

Re: x5250 window shading

On Sat, 4 Jun 2005, Sean Porterfield wrote:

> I'm mostly curious if this is intended behavior or not.  When a window popped 
> up, the text to the right of that window changed color, as if the window were 
> casting a shadow.  xt5250 does not have the same behavior.

It is acting as though it received an over-sized erase command.  Either 
the iSeries is sending an Erase to Address that is larger than the window 
or lib5250 is erasing more than necessary.  lib5250 forces an erase to 
address for the size of the window since sometimes the iSeries sends the 
text behind the window (I have been unable to figure out why).  You could 
use the trace= option and look for the create window command and the 
preceding erase to address and compare the sizes.

James Rich

It's not the software that's free; it's you.
 	- billyskank on Groklaw
--

-- 
This is the Linux 5250 Development Project (LINUX5250) mailing list
To post a message email: LINUX5250@...
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/linux5250
or email: LINUX5250-request@...
Before posting, please take a moment to review the archives
at http://archive.midrange.com/linux5250.

Sean Porterfield | 5 Jun 2005 15:23

Re: x5250 window shading

James Rich wrote:
> On Sat, 4 Jun 2005, Sean Porterfield wrote:
> 
>> When a window popped up, the text to the right of that window changed
>> color, as if the window were casting a shadow.
> 
> 
> You could use the trace= option and look for the create window 
> command and the preceding erase to address and compare the sizes.

Naturally, when I put the trace= it won't reproduce the event!  If I can 
find out a specific series of actions that caused the color change, I'll 
run a trace.  Otherwise, I'll just ignore it (especially since it isn't 
there today...)

--

-- 
This is the Linux 5250 Development Project (LINUX5250) mailing list
To post a message email: LINUX5250@...
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/linux5250
or email: LINUX5250-request@...
Before posting, please take a moment to review the archives
at http://archive.midrange.com/linux5250.

Kasper Rönning | 17 Jun 2005 10:10
Picon

Unknown opcode 6E

Hi

I'm trying to run tn5250 with a 5250 host simulator. Other 5250 clients (i.e. WRQ) have no problem
connecting to it but tn5250 fails with unknown opcode. Below is the trace. I tried removing the assert at
line 264 in session.c, but the connection just hangs then, probably the host waits for an answer to the opcode.

Kasper Rönning

------------------------------------

Non-Blocking
tn5250_dbuffer_clear_table() entered.
tn5250_char_map_new: map = "37"
Found string for cap ' <at> 8': 'M'.
'.und string for cap 'cr': '
Found string for cap 'kB'. '
Found string for cap 'k1': 'P'.
Found string for cap 'k2': 'Q'.
Found string for cap 'k3': 'R'.
Found string for cap 'k4': 'S'.
Found string for cap 'k5': ''.
Found string for cap 'k6': ''.
Found string for cap 'k7': ''.
Found string for cap 'k8': ''.
Found string for cap 'k9': ''.
Found string for cap 'k;': ''.
Found string for cap 'F1': ''.
Found string for cap 'F2': ''.
Found string for cap 'F3': '2P'.
Found string for cap 'F4': '2Q'.
(Continue reading)

Holger Burbach | 22 Jun 2005 09:09
Picon

date field problem

Hello *,

we are successfully using tn5250 for accessing our AS/400 from 70 
Linux-Clients for more than 3 years now. Quite everything works fine, but 
there is always a little fight between the AS/400 programmers, who prefer 
ClientAccess, and the rest of the IT department, who prefers tn5250.

Well, the programmers raised a problem: They programmed date input fieds in 
their application and used some sort of mask, so that users only need to type 
the numbers and the cursor jumps accross the dots "." (it would be a slash in 
english speaking countries, e.g. 04/03/2005 or 04.03.2005).

The corresponding code on the AS/400 side is

	(...)
	EDTCODE(Y) EDTMASK('  &  &    ')
	DSPATR(UL HI)  COLOR(WHT)
	(...)

Unfortenately it works perfectly with ClientAccess, but using tn5250 the 
cursor doesn't jump across the mask characters ("." or "/"). Instead it 
positions directly on the dot, so users have to move the cursor manually to 
the right to continue entering the date.

Does anyone has an idea, what the problem is? Is this a bug in tn5250? Is 
there a clever way to change to code on AS/400 side? Any help would be 
appreciated.

Please don't let the programmers (and ClientAccess) win... ;-)

(Continue reading)

James Rich | 22 Jun 2005 20:26

Re: date field problem

On Wed, 22 Jun 2005, Holger Burbach wrote:

> we are successfully using tn5250 for accessing our AS/400 from 70
> Linux-Clients for more than 3 years now. Quite everything works fine, but
> there is always a little fight between the AS/400 programmers, who prefer
> ClientAccess, and the rest of the IT department, who prefers tn5250.

Wow - very cool.

> The corresponding code on the AS/400 side is
>
> 	(...)
> 	EDTCODE(Y) EDTMASK('  &  &    ')
> 	DSPATR(UL HI)  COLOR(WHT)
> 	(...)

I can get similar code to compile on my machine.  Should that be EDTCDE 
and EDTMSK?  Also, no matter what I choose, the compile always fails with 
an incorrect shift attribute error.  Can you post more of the code for 
this field?  Here is what I'm trying:

A            DFDATE        10Y 0B 22 54EDTCDE(Y)
A                                      EDTMSK('  &  &    ')

> Does anyone has an idea, what the problem is? Is this a bug in tn5250? Is
> there a clever way to change to code on AS/400 side? Any help would be
> appreciated.

Can you tell me which version of tn5250 you are using?  'tn5250 -version' 
should do the trick.  If you are using version 0.17.2 or later, can you 
(Continue reading)

Dan Stephens | 23 Jun 2005 19:37

RE: date field problem


On Wed, 22 Jun 2005 12:26:36 -0600 (MDT), James Rich wrote:

> I can get similar code to compile on my machine.  
> Should that be EDTCDE and EDTMSK?  
> Also, no matter what I choose, the compile always 
> fails with an incorrect shift attribute error.  
> Can you post more of the code for this field?  
> Here is what I'm trying:
> 
> A            DFDATE        10Y 0B 22 54EDTCDE(Y)
> A                                      EDTMSK('  &  &    ')

James, I can't get that to compile either, but if I change the field
length to 8 it compiles:

A            DFDATE         8Y 0B 22 54EDTCDE(Y) 
                                       EDTMSK('  &  &    ')

I don't have tn5250 running at work so I can't check further as to the
other symptoms, sorry.

-dan

Dan Stephens
My programs don't have bugs, they just develop random features.

Copyright 2005 Rock-Tenn Company. All Rights Reserved. Confidential and Proprietary Property of
Rock-Tenn Company.

(Continue reading)


Gmane