From cchi@lle.rochester.edu (a.k.a.
cchiesa1@rochester.rr.com)
I just downloaded and built Xmt 3.1.0, using Sun
WorkShop 6 update 1 C 5.2 2000/09/11 under Solaris 8
on a Sun Ultra 10.
Running the 'mockup' client against the
supplied 'demo.ad' and 'inputfield.ad' resource files, I
observe that the CLI and InputField widgets appear not
to exhibit their claimed functionality. I have absolutely
no idea how to tell whether this is an Xmt-specific or
X11/Motif bug; it isn't listed in KNOWNBUGS or here in
the Bug Tracker, so I am reporting it.
In 'demo,' the CLI widget does not appear to
exhibit "command recall" behavior. I type several
commands, pressing RETURN after each. At the next
prompt I press the up arrow key, expecting to see my
commands "echoed" into the "current line" at the
prompt. This does not happen; there is in fact NO
visible response to the up (or down) arrow key(s).
In both 'demo' and 'inputfield', all but one instance of
the InputField widget fail to exhibit the features
claimed by onscreen labels: "... converts to all
caps;" "If you don't type a full phone number, [...]
says 'Error';" "accepts octal input...;" etc. With one
minor exception, all InputFields in both GUIs accept
ANY input, without performing any visible validation,
formatting, or conversion, or otherwise reacting to
content. The sole exception is that the InputField that
is said to "use overstrike mode," actually does.
Logged In: YES
user_id=865791
Hi,
I just compiled the actual Xmt (4.0.0) version on my Linux
box (SuSE 8.2, gcc 3.3, libXm.so.3.0.1, Celeron 600) and
found no such problems: all input fields do what they should
do, the up arrow key shows the last command in the CLI. I
think these problems are not really related to Xmt, or maybe
they are no more in the latest release. 3.1.0 ist quite old,
it could be your Motif is too new for that version. Maybe
you should try 4.0.0 first to validate the problems. If they
persist: What Motif/X11 version are you running? Are there
other Motif programs showing such a behaviour?
mfg Frank Finner
Logged In: NO
To make CPI widget allows command recall, we need to force
CLI to save its history. Update Cli.c line 1115 to add:
#if XmVersion >= 2000
cw->cli.save_history = True;
#endif
Logged In: YES
user_id=178930
I have been able to reproduce these problems on my Solaris
8 system.
For the InputField widget, it appears that the Solaris
XmText widget in libXm does not correspond to the private
header file (Xm/TextP.h). Adding a dummy pad to the start
of the InputField private record corrects this; this fix
has been checked into CVS.
I will investigate the CLI problem and check in a fix when
I have one.
Logged In: YES
user_id=178930
Update: The problem with CLI is the same as with
InputField: undeclared additional fields in XmText cause
corruption of data at the start of CLI's data; this just
happens to be the 'save_history' field.