Operating System - HP-UX
1822620 Members
3723 Online
109643 Solutions
New Discussion юеВ

Re: Copy and paste is very slow

 
Joaqu├нn_2
Advisor

Copy and paste is very slow

hello all

When a copy and paste from windows to reflection 12 (sesion hp/ux). It run very slow.

┬┐Anyone knows because?

Thank
10 REPLIES 10
Bharat Katkar
Honored Contributor

Re: Copy and paste is very slow

hi,
Yes, even i have noticed same thing. On the other hand why don't you use normal telnet session, it works quite fast. CUT PASTE works fine with normal telnet session.
Regards,
You need to know a lot to actually know how little you know
HGN
Honored Contributor

Re: Copy and paste is very slow

Hi

When using telnet the cut & paste works just fine and do not see any slow response, you can also maybe hummingbird telnet session with the tool bar or any other product.

Rgds

Gopi
Bill Hassell
Honored Contributor

Re: Copy and paste is very slow

The paste process is not like Windows-to-Windows, especially for something like vi. When you paste in vi, only one character is pasted, then transmitted, then vi echoes back the character to your screen so you can see the newly inserted character, and so on. Additionally, make sure you have turned off the MPE (HP 3000) options and turned on the HP-UX options:

ENQ/ACK=unchecked
HostPrompt=
UseHostPrompt=unchecked
InhibitHandshake=CHECKED
InhibitDC2=CHECKED

However, the setting that will speed things up the most is PasteDelay and TypeAhead. PasteDelay is most likely set to zero which forces the default of 50ms between paste tasks. Reflection for HP (not to be confused with Reflection/X) will transmit pasted text in buffers (see PasteBufferSize, default=78, 80max). Once the buffer has been sent, the PasteDelay occurs or Reflection waits for the HostTriggerCharacter (DC1 by default). Note that these options are only found in the Setup->View settings menu.

However, you can bypass all PasteDelay operations by enabling TypeAhead. You'll find TypeAhead in Setup->Terminal->Keyboard. NOTE: you MUST have stty ixoff set in your login profile. Otherwise, a busy/slow LAN and/or a slow system will not be able to keep up with the incoming data stream. The effect is that a long paste of data will be missing lots of characters. Your profile's stty should look like this:

/sbin/stty erase "^H" kill "^U" intr "^C" eof "^D" -parity ixoff

You see your current settings with stty -a or grep for ixoff with stty -a | grep ixoff. Note that -ixoff means the setting is disabled. What ixoff does is to use XON/XOFF protocol for terminals. On telnet connections, XON/XOFF is implemented as a protocol feature rather than the serial port method, but the effect is the same. An XOFF is signaled to the client when the server can't accept any more data. This prevents data overruns.

As mentioned before, this applies only to Reflection terminal emulators such as Reflection NS/VT, Reflection for HP, or the older names, Reflection/1, Reflection/2, etc. Reflection/X has a Reflection NS/VT emulator called r2win.exe and like the other emulators, does not require Xwindows at all. In Xwindows, the terminal window is actually running on some other box and just redisplaying the results on the Windows screen. However, you can set ixoff for every connection with no problems.


Bill Hassell, sysadmin
Joaqu├нn_2
Advisor

Re: Copy and paste is very slow

thank's all
Bill the problem hava disapear, but when a copy and paste by example any numbers with una script, it's don't work good.

├в Introduce una cadena: 149├в
├в ********* 149├в
├в Introduce una cadena: 150├в
├в ********* 150├в
├в Introduce una cadena: 151├в
├в ********* 151├в
├в Introduce una cadena: 152├в
├в ********* 152├в
├в Introduce una cadena: 153├в
├в 154├в
├в 155├в
├в ********* 153├в
├в Introduce una cadena: 154├в
├в ********* 154├в
├в Introduce una cadena: 155├в
├в ********* 155├в
├в Introduce una cadena: 156├в
├в ********* 156├в
├в Introduce una cadena: 157├в
├в *
Bill Hassell
Honored Contributor

Re: Copy and paste is very slow

If your text contains language-specific special characters, there will always be problems. When you copy characters from a word processor on your PC, the 96 normal ASCII characters will look the same. But word processors have the capability to insert special characters (language accents, smiley faces, musical notes, etc) all of which come from fonts located on the PC. When you paste these special characters into another program (even on the same computer), they will be shown on the screen in whatever font and mapping is avaialble on the target system (HP-UX for instance).

You can see the problem on your PC by simply copy/paste from your document into the Windows program Notepad. Notepad does not handle special characters so the resultant text will not match your word processor.

In fact, if you look at your last posting here in the ITRC, you'll see that the special characters do not look right either. This is because the web server's code is trying to make sense of the special characters and they won't look correct.

Even if you can paste these special characters into some program which displays them correctly, you'll have a similar problem with printing as HP-UX provides no font controls to match the text in your document.


Bill Hassell, sysadmin
Joaqu├нn_2
Advisor

Re: Copy and paste is very slow

Dear bill,

i think you do not understand well. Please look the enclosed code where you will see that we only try to read and write.

Please check this code and please tell me if you see something rare???
---------------------------

#!/bin/ksh
#
echo "Introduce una cadena: \c"
read NOMBRE
while [ 1 -eq 1 ]
do
echo "Introduce una cadena: \c"
read NOMBRE
echo "*********" $NOMBRE
done

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

After used this program pasting 20.000 continue numbers from notepad, you can see that reflection repeat a few numbers in the screen but also everything goes well. it├В┬┤s happens many times.

In the previous message you will see this mistake in number 153 & 154 but program goes well.

Could you tell me where is the mistake showing garbage in the screen???

best regards.

Joaqui
Bill Hassell
Honored Contributor

Re: Copy and paste is very slow

What does stty -a show? The entries 154 and 155 look as if a buffer overrun has occurred which means that ixoff is not set.


Bill Hassell, sysadmin
Joaqu├нn_2
Advisor

Re: Copy and paste is very slow

Bill my settings file the reflection is attach to this messaje and the result of run stty -a is the next
-----------------------
speed 9600 baud; line = 0;
rows = 50; columns = 132
min = 4; time = 0;
intr = ^C; quit = ^\; erase = ^H; kill = ^U
eof = ^D; eol = ^@; eol2 ; swtch
stop = ^S; start = ^Q; susp ; dsusp
werase ; lnext
-parenb -parodd cs8 -cstopb hupcl -cread -clocal -loblk -crts
-ignbrk brkint ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc
ixon -ixany ixoff -imaxbel -rtsxoff -ctsxon -ienqak
isig icanon -iexten -xcase echo echoe echok -echonl -noflsh
-echoctl -echoprt -echoke -flusho -pendin
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel -tostop
-----------------

But your information about my problem is excellent.
Thank's
Joaqu├нn_2
Advisor

Re: Copy and paste is very slow

Bill my settings file the reflection is attach to this messaje and the result of run stty -a is the next
-----------------------
speed 9600 baud; line = 0;
rows = 50; columns = 132
min = 4; time = 0;
intr = ^C; quit = ^\; erase = ^H; kill = ^U
eof = ^D; eol = ^@; eol2 ; swtch
stop = ^S; start = ^Q; susp ; dsusp
werase ; lnext
-parenb -parodd cs8 -cstopb hupcl -cread -clocal -loblk -crts
-ignbrk brkint ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc
ixon -ixany ixoff -imaxbel -rtsxoff -ctsxon -ienqak
isig icanon -iexten -xcase echo echoe echok -echonl -noflsh
-echoctl -echoprt -echoke -flusho -pendin
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel -tostop
-----------------

But your information about my problem is excellent.
Thank's
Bill Hassell
Honored Contributor

Re: Copy and paste is very slow

ixoff is set so you may have to revert to using the paste buffer. Turn off Typeahead in Reflection. Then select Setup -> View Settings and type the word paste into the search box. Then select PasteDelay and change it to 1 and click OK.

It will run slightly slower than TypeAhead but it should be OK now.


Bill Hassell, sysadmin