ICE

Please login or register.

Login with username, password and session length
Advanced search  

News:

ICETCP.PRO and ICETCP.PLUS are compatible with Windows 11!

Author Topic: Screen Copy  (Read 1265 times)

kjones

  • Jr. Member
  • **
  • Posts: 8
Screen Copy
« on: May 30, 2007, 11:24:22 am »

Prior to moving to TCP-Pro 5.1.26, we were able to select a portion of the screen image and then copy and paste without problems.  With the newer release, I am able to copy and paste but lines which extend completely to the right-hand margin don't terminate properly when pasted.

Here is an example (this is actually five lines):
--------------------------------------------------------------------------------INVENTORY AVAIL:                                WHSE 002 or
  INV #/DESCR.                                 WHS 1 ON D/T  ON P/O   P/O-LINE
--------------------------------------------------------------------------------002-MA-9342-636      MASLAND BELAGIO BURLWOOD     4'  0"

I am aware that we could opt for copying the entire screen image using Alt-PrtSc but would rather avoid that, if we can.

Suggestions?

Logged

jimn

  • Global Moderator
  • Ice Artist
  • *****
  • Posts: 116
Re: Screen Copy
« Reply #1 on: May 30, 2007, 02:13:03 pm »

The lines in your example certainly don't look right, but I don't know how they should look--post the lines again, formatted the way they should appear.

What app are you normally pasting to? It could be the app (say a word processor) is automatically breaking the lines from 80 to 66 characters by adding c/r's.

Is your telnet screen set to 80 or 132 characters?

Logged

kjones

  • Jr. Member
  • **
  • Posts: 8
Re: Screen Copy
« Reply #2 on: May 30, 2007, 09:49:57 pm »

Thanks for the response.

When you ask if my telnet screen is set to 80 or 132 characters, I assume you mean how many columns is my current terminal emulation set for.  It is set for 80 columns.

Here's how it should look after pasting (and does in the emulation session):
--------------------------------------------------------------------------------
INVENTORY AVAIL:                                WHSE 002 or
  INV #/DESCR.                                 WHS 1 ON D/T  ON P/O   P/O-LINE
--------------------------------------------------------------------------------
002-MA-9342-636      MASLAND BELAGIO BURLWOOD     4'  0"
Logged

Bob

  • Administrator
  • Ice Artist
  • *****
  • Posts: 1607
Re: Screen Copy
« Reply #3 on: June 01, 2007, 02:20:35 pm »

It looks like we changed the copy and paste behavior at some point in the past. The copy and paste didn't work for lines that spanned two physical lines on the screen because of the added C/R so we decided that if there was something other than a space in the last column, when one does a copy that spans the end of that line a C/R is NOT added (this allows one to copy and paste long lines back into the unix shell).

The copy whole screen option is still done in the old way since that is obviously not going to be fed into a shell (hmmm, looks like this is not the case!).

The only workarounds I can see are:

1) Copy the whole screen and trim out what you don't want after the paste.

2) Alter the banner line(s) in the app so it doesn't go all the way to column 80, say 79 instead. (BTW many apps try to avoid column 80 entirely because the behavior in the 80th column differs from one terminal emulation to another).

3) Temporarily put the screen in 132 column mode, do the copy and paste and put the screen back in 80 column mode (the 80th column isn't at the end of the line in 132 column mode so the C/R's will get added).
« Last Edit: June 04, 2007, 02:11:39 pm by Bob »
Logged

kjones

  • Jr. Member
  • **
  • Posts: 8
Re: Screen Copy
« Reply #4 on: June 04, 2007, 12:11:06 pm »

Thanks.  I made some quick changes and think I can get this to work.

Just for the record, doing "select all" followed by a copy and paste gives me the same problem unless I modify the code as you suggest.

I appreciate the response.
« Last Edit: June 04, 2007, 12:13:47 pm by kjones »
Logged
 

Page created in 0.016 seconds with 20 queries.