MailMan | 1 Jun 13:30 2004

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)

Scott Klement | 3 Jun 23:35 2004

Re: x5250 update


I can't seem to build this thing.  I get the following:

(w7) 4:33pm ~/tn5250cvs/rich/x5250 > make
rm -f x5250
cc -o x5250 -Wall -g -I../../tn5250-0.16/src -I/usr/local/include
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-L/usr/X11R6/lib   x5250.o x5250term.o alloccolors.o key.o mouse.o
wordwrap.o help.o     debug.o -lXext -lX11 -l5250 -L/usr/local/lib
-Wl,-rpath,/usr/X11R6/lib
x5250.o: In function `check_options':
/home/klemscot/tn5250cvs/rich/x5250/x5250.c:1259: undefined reference to
`getopt_long_only'
*** Error code 1

Stop in /usr/home/klemscot/tn5250cvs/rich/x5250.

First, is there any reason why you're not using TN5250's built-in
command-line/configfile options system?

Assuming that you have some reason to not use TN5250's system, can you
tell me where "getopt_long_only" comes from?  Which package, that is, so I
can see if it's available for my system?

On Thu, 27 May 2004, James Rich wrote:

> Hi everyone,
>
> I've updated x5250 and now it is actually usable!  All the function keys
> work, as do field exit, plus, and minus.  In fact, every key works with
(Continue reading)

James Rich | 4 Jun 00:46 2004

Re: x5250 update

On Thu, 3 Jun 2004, Scott Klement wrote:

> I can't seem to build this thing.  I get the following:
> /home/klemscot/tn5250cvs/rich/x5250/x5250.c:1259: undefined reference to
> `getopt_long_only'
> *** Error code 1

Weird.  man getopt_long_only gives me:

SYNOPSIS
       #include <unistd.h>

       int getopt(int argc, char * const argv[],
                  const char *optstring);

       extern char *optarg;
       extern int optind, opterr, optopt;

       #define _GNU_SOURCE
       #include <getopt.h>

So AFAICT it comes from glibc.  I don't know if *bsd uses glibc, so this
may be an incompatibility I need to fix.

> First, is there any reason why you're not using TN5250's built-in
> command-line/configfile options system?

Only one reason:  consistency with most of the other software on my
system.  Actually, I do use tn5250_config_parse_argv() but not until
after I've extracted command line options that start with a dash.
(Continue reading)

Scott Klement | 4 Jun 01:57 2004

Re: x5250 update


Hi James,

>
> Only one reason:  consistency with most of the other software on my
> system.  Actually, I do use tn5250_config_parse_argv() but not until
> after I've extracted command line options that start with a dash.
> getopt_long_only() removes options that start with a dash and passes the
> rest of the command line unchanged.  Then I call
> tn5250_config_parse_argv() to get the 5250 specific stuff.  Most X apps
> expect to be able to specify things like -geometry or -name, things that
> tn5250_config_parse_argv() doesn't understand.  The only dash options that
> tn5250_config_parse_argv() does understand are -version, -ruler,
> -underscores, and -ssl_verify_server.  -version I handle (as well as
> --version for consistency).  -underscores is irrelevant to x5250.  -ruler
> will be handled (as well as --ruler).

There are a number of other options as well.  I'd hate to think that it's
necessary to hard-code all of the ones that will have to be handled
specially.

Though, I suppose you could specify   ruler=0 instead of -ruler.  It would
do the same thing (with the current implementation)

> I think from glibc.  You could try replacing getopt_long_only() with
> getopt_long() and see if that compiles.  If not, I'll need to investigate
> further.  If getopt_long() doesn't work, then getopt() will but may need
> some more changes (specifically the options[] array will not be used).

getopt_long() does work, but it's NetBSD's implementation, not GNU's.
(Continue reading)

James Rich | 4 Jun 02:36 2004

Re: x5250 update

On Thu, 3 Jun 2004, Scott Klement wrote:

> There are a number of other options as well.  I'd hate to think that it's
> necessary to hard-code all of the ones that will have to be handled
> specially.

Hmm... the ones I mentioned are the only ones that show up in the help.

> getopt_long() does work, but it's NetBSD's implementation, not GNU's.
> There's a listing of the differences between them on the following page:
>
>    http://www.freebsd.org/cgi/man.cgi?query=getopt_long

Ok, I'll look at this and make sure it works for both platforms.

> Now that I've gotten it to compile, I see that you're overriding lib5250's
> keyboard handling?   If I type a key in a field that's supposed to be
> uppercase-only, it shows up as lowercase then converts to uppercase when I
> hit enter.

Actually, I'm not overriding it.  Right now I'm working on the problem of
redrawing the screen.  Here's what happens:

1. You press a key.  Xlib gets the keypress event and reports the event
back to x5250.

2. x5250 finds out what key was pressed from Xlib.  x5250 returns the
result to lib5250.  At this point x5250 knows what key was pressed and
remembers it.

(Continue reading)

James Rich | 4 Jun 05:31 2004

Re: x5250 update

On Thu, 3 Jun 2004, James Rich wrote:

> On Thu, 3 Jun 2004, Scott Klement wrote:
>
> > getopt_long() does work, but it's NetBSD's implementation, not GNU's.
>
> Ok, I'll look at this and make sure it works for both platforms.

> What should be done is that x5250 should remember where the cursor was and
> ask lib5250 what character should be drawn in just that place.  That way

Ok, both of these issues have been addressed and I released a new version
that fixes them.  A list of changes and the tarball are at the usual spot:

http://www.chowhouse.com/~james/x5250

Thanks again for testing this out.

James Rich

Vs lbh guvax bs argjbex frphevgl nf na vzzhar flfgrz, Jvaqbjf vf UVI.
	-- Wbr Cyhgn
_______________________________________________
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.
(Continue reading)

James Rich | 4 Jun 23:08 2004

Re: x5250 update

On Thu, 3 Jun 2004, James Rich wrote:

> Ok, both of these issues have been addressed and I released a new version
> that fixes them.  A list of changes and the tarball are at the usual spot:
>
> http://www.chowhouse.com/~james/x5250

Ok, this is twice I've responded to myself.  I hope no one gets upset :)

I had to make a new release since the version mentioned above was seg
faulting.  At the same URL you will find version 0.1.2 that fixes that.

James Rich

Vs lbh guvax bs argjbex frphevgl nf na vzzhar flfgrz, Jvaqbjf vf UVI.
	-- Wbr Cyhgn
_______________________________________________
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 00:13 2004

lib5250 function to position cursor

Hi folks,

I need a way to tell lib5250 to position the cursor to a specific column
and row.  So far my reading hasn't uncovered a way to do this.  I need
something like tn5250_set_current_position(row,column).

This is needed so I can set the cursor position with the mouse.

James Rich

Vs lbh guvax bs argjbex frphevgl nf na vzzhar flfgrz, Jvaqbjf vf UVI.
	-- Wbr Cyhgn
_______________________________________________
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.

Scott Klement | 5 Jun 10:08 2004

Re: lib5250 function to position cursor


Hi James,

> I need a way to tell lib5250 to position the cursor to a specific column
> and row.  So far my reading hasn't uncovered a way to do this.  I need
> something like tn5250_set_current_position(row,column).
>
> This is needed so I can set the cursor position with the mouse.

Take a look at tn5250_dbuffer_cursor_set()

To call it, you'll need a pointer to the Tn5250Display object.  This
object is passed to your routine in the terminal_update() routine.  I
suggest that you save the pointer in your own _Tn5250TerminalPrivate
structure, and then when you need it you can call the cursor set routine
with:

    tn5250_dbuffer_cursor_set(term->data->display->display_buffers,
                              row, column);

HTH
_______________________________________________
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.

(Continue reading)

James Rich | 8 Jun 04:23 2004

x5250 version 0.1.3 released

Hi everyone,

I am very happy to announce version 0.1.3 of x5250.  With this version
x5250 is nearly feature complete with tn5250, missing only insert,
delete, key mapping, and copy/paste.

Scott Klement very kindly provided an autoconf script, so you no longer
need Imake.  Thank you Scott!

Significant new items:
  * System indicator window to display message waiting, etc.
  * User customizable colors using the X defaults database.
  * New build system.

For a complete list of all that is new please visit the website:

http://www.chowhouse.com/~james/x5250/

There you can download the source code.  There is also an example of how
to set your color preferences.  See the "What's New" section for details.

The new build system should make compiling a breeze for everyone.  Once
you have downloaded the tarball and extracted it, just do:

cd x5250-0.1.3
./autogen.sh
./configure
make
make install

(Continue reading)


Gmane