1833543 Members
3171 Online
110061 Solutions
New Discussion

Re: Cut & Paste problem

 
SOLVED
Go to solution
Richard Allen
Frequent Advisor

Cut & Paste problem

I've been having a cut & paste problem on HP-UX for years now which appear as follows:

If I select lots of text and paste it, the resluting paste is only just part of what I selected and often garbled somehow.
Over the years I've got used to not selecting to much at a time and that works for me, but sometimes copying large amounts of text this way can be troublesome.

I see this problem when working on X terminals (Envizex), My Linuxboxes or Windows running some X emulators.

It does not matter where I run the xterms. I can run it on my Linux box and ssh (I've tested telnet and rlogin also) to the HP-UX box and then I get the problem.
I can run the xterms on the HP-UX boxes, displaying on my local box and the problem is apparent.

Now if I use the xterms locally on Linux I can paste what I select every time.

Does anyone have an Idea on whats going on and how to fix ?
4 REPLIES 4
Steve Post
Trusted Contributor

Re: Cut & Paste problem

Nope. I have the same problem. I overcame it by using file transfer programs.

I edit a hpux file. I want to cut 20,000 lines out of it and paste it into msword on my pc.....

1. vi file
2. :100,20100w junkfile.txt
3. :q!
4. ftp junkfile.txt to my pc.
5. open msword
6. read in file c:\tmp\junkfile.txt

Now for the opposite
1. I am in msword
2. I save 20,000 lines to file c:\tmp\junkfile.txt
3. I ftp c:\tmp\junkfile.txt to
myhpuxbox:/bigdisk/junkfile.txt
4. I vi file /bigdisk/my_target_file
5. I go to line 12304 (just for kicks)
That's command 12304G
6. I read in junkfile.txt to link
12304 via with this command.....
: r junkfile.txt

PS: you would probably get more responses if you assigned ANY points to the reponses you have recieved. Click on your own name. Based on your track record (no points), you'll never read this anyway. I'm just ramblin away to a non-existant author. An author who put in a question but never bothered to see if anyone answered......

besides, I only guessing that you are using vi.

Bill Hassell
Honored Contributor
Solution

Re: Cut & Paste problem

The problem is the default stty settings that HP has used in login profiles. It is missing the ixoff option. stty ixoff will fix your problem. It is also missing -parity so my stty values for all users (I put it into /etc/profile and /etc/csh.login:

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

-parity takes care of (obsolete) parity problems with serial ports and ixoff activates receive pacing. What this means is that when the destination is too busy to accept more characters, it will send the XOFF character (serial lines) or signal the sender to wait (telnet, ssh, etc).


Bill Hassell, sysadmin
Steve Post
Trusted Contributor

Re: Cut & Paste problem

Ah the REAL reason why I browse these forums: Answers, not points. Thank you Bill.
Richard Allen
Frequent Advisor

Re: Cut & Paste problem

Thanks Bill. This fixed my problem :)
If only I had known this back in 1997 :)