View previous topic :: View next topic
|
Author |
Message |
Ankit Kumar Gupta
New User
Joined: 08 Jan 2011 Posts: 16 Location: India
|
|
|
|
Hi,
I want to show the text on the screen using REXX like user will feel that system is typing it.
I mean say the output will be " Hi User" It should comes like Letter by letter with some delay between them. So that it looks like someone is typing it.
Is it possible?
Thank you,
Regards,
Ankit Gupta |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Nothing comes to mind.
Now, if you wanted to call an ISPF Panel, then it might be feasible ... |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1314 Location: Vilnius, Lithuania
|
|
|
|
Ankit Kumar Gupta wrote: |
I want to show the text on the screen using REXX like user will feel that system is typing it.
I mean say the output will be " Hi User" It should comes like Letter by letter with some delay between them. So that it looks like someone is typing it.
Is it possible? |
Please go back to your little box powered by Gates' Garbage. Mainframes are used for serious work. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
You could wait 5 seconds before typing the next character. |
|
Back to top |
|
|
don.leahy
Active Member
Joined: 06 Jul 2010 Posts: 765 Location: Whitby, ON, Canada
|
|
|
|
You can display simple animations using ISPF services. For example, I have a function that displays a "work in progress" bar by redisplaying a panel in a loop (under CONTROL DISPLAY LOCK). ISPF 3.4 has one too, if memory serves.
But these are not serious applications, just technical stunts. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
and almost any customer of mine enabled at Christmas time
a small rexx displaying a christmas tree, blinking lights and season' s greetings
the lazy approach just write a few of panels
a more sophisticated approach was to dynamically change the attributes of the lights |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2593 Location: Silicon Valley
|
|
|
|
Agree about using CONTROL DISPLAY LOCK with ISPF panels.
Also, use
Code: |
Call syscalls 'ON'
Address syscall "sleep" 1 |
To slow down the displays. |
|
Back to top |
|
|
don.leahy
Active Member
Joined: 06 Jul 2010 Posts: 765 Location: Whitby, ON, Canada
|
|
|
|
There was actually one time in my experience where an ISPF animation served a useful purpose. I demonstrated my "work in progress" bar to my friendly systems programmer and he was appalled at how much slower the TSO response time was on DEV compared to Production. He launched an immediate investigation. |
|
Back to top |
|
|
Kjeld
Active User
Joined: 15 Dec 2009 Posts: 365 Location: Denmark
|
|
|
|
There's no point in try making a 3270 screen load as slow as a web page. If you want browser response times, use a browser web application. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Ankit Kumar Gupta wrote: |
I mean say the output will be " Hi User" It should comes like Letter by letter with some delay between them. So that it looks like someone is typing it. |
Maybe I should know better than to ask, but what is the business reason behind this |
|
Back to top |
|
|
Ankit Kumar Gupta
New User
Joined: 08 Jan 2011 Posts: 16 Location: India
|
|
|
|
@ All above
Thanks for sharing your thoughts... I am a newbie trying my hands on REXX. I just thought like if we can give some good display to user
Anyways!
Thanks once again "enrico-sorichetti", "don.leahy", "Pedro" for giving the information and your time. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
I just thought like if we can give some good display to user |
This is not a "good display to user". Most users want the screen interaction to move as quickly as possible. If there are only 30 characters to be displayed - this will take 1/2 a minute (an eternity). The "real users" will most likely not accept this delay even if it is cute. Even though this was "neat" in WarGames (the movie) - it was state of the art then. No so today.
It is a very good idea learn REXX and other tools. Suggest the effort be spent getting things to work correctly every time and interact quickly. . .
FWIW |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
I mean say the output will be " Hi User" It should comes like Letter by letter with some delay between them. So that it looks like someone is typing it.
Is it possible? |
You are asking the wrong question. You should be asking "Is this something I want to do?" not whether or not it is possible. A professionally written system on a mainframe would never tolerate such delays -- the mainframe, unlike the PC and the like, does not require CPU time to examine every character typed on every keyboard (especially since there could be thousands of keyboards attached at any given time). Learn to use the mainframe facilities the way it has worked for the last 45 years -- don't try to make it look like something it is not, and don't try to play games with your user interface. |
|
Back to top |
|
|
|