|
On Wed, 20 Mar 2002, Jeremy Stent wrote:
>
> For the random filename, I believe that in windows there is an OS
> call that will return a unique filename. I haven't used it in a
> while, but I seem to remember that you could specify some properties
> of it (starting letters / extension?) and have it return the rest. I
> know that this would be OS-Specific, but the appropriate code could
> always be wrapped in an #ifdef.
Sounds similar to mktemp() / mkstemp() in Unix. Do you know what
the function that you call is called? I started looking for something
after James mentioned /dev/urandom, but couldn't find it.
>
> I haven't tried the latest windows patch, but the one from last week
> seems quite nice. I was just wondering if it could somehow be made
> to respond to the Ctrl key. My company currently provides Client
> Access, which works well enough, (except after the last upgrade when
> it wanted to call some program that we had lost permissions on) and I
> like the Right Ctrl to be the Newline.
I think I have the Right-Ctrl mapped to Field-Exit. Keyboard mapping is
on my to-do list, but if you want a quick-fix (and you don't mind changing
source code) you can do it this way:
1) Open an MS-DOS prompt
2) go to the Win32 directory:
cd \tn5250-0.16.3w\win32
3) edit the Windows Terminal source file:
edit winterm.c
4) Search for this string: keyup2msg
5) A few lines below the first occurrance of "keyup2msg" there's
a line that looks like this:
{ 0, VK_CONTROL, K_FIELDEXIT, 0, 1 },
6) Change that line to read:
{ 0, VK_CONTROL, K_NEWLINE, 0, 1 },
Or you can make it K_ENTER if you'd prefer it to work line an enter
key instead of a newline key, etc.
7) Save your changes, and (back at DOS prompt) type:
make
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.