I think a better question might be: Is there any way to copy multiple lines from
xt5250 without it adding the enter at the end of the line?  (Becuase we didn't
type enter, it just wrapped to the next line.  vim knows there is no CR but
xt5250 doesn't.)

Scott Klement wrote:

> On Wed, 28 Jun 2000, Martin Rowe wrote:
>
> > Hi
> >
> > I can copy multiple lines from an xt5250 session and paste them into a
> > text editor fine. If I try to paste the same lines into an xt5250
> > screen the emulator puts in the first line then acts as if Enter had
> > been pressed, so the AS/400 processes just the one line that's been
> > pasted. This might be copying an SQL statement from an interactive SQL
> > session from one AS/400 to another, or a command on the command entry
> > screen.
> >
> > If I paste into a screen that doesn't try and process the input, I
> > just get the first line, with bits of the last copied line tagged on
> > at the end.
> >
> > I'm assuming this is an xt5250 issue, as multi-line pasting into vim
> > running in an xterm works fine.
>
> If you think about, they're doing the same thing.  When you paste data
> into an editor (such as vim), its "typing" the line of text into the
> program, then hitting enter at the end of the line.
>
> The difference is that in an editor, enter takes you to the next line,
> whereas in a 5250 session, it takes you to the next screen :)
>
> I don't think tn5250 handles cut/copy/paste at all since it is
> really just a console-mode application running in an xterm.  The xterm
> is handling the pastes, and unfortunately, they need to be handled
> differently than they would in an ordinary text application :(
>
> By contrast the gnome-5250/gtk-5250 application doesn't appear to do
> any cut/copy/paste operations at all.  Maybe when it is completed,
> it'll handle these nicely?  (Jay?)
>
> +---
> | This is the LINUX5250 Mailing List!
> | To submit a new message, send your mail to [EMAIL PROTECTED]
> | To subscribe to this list send email to [EMAIL PROTECTED]
> | To unsubscribe from this list send email to [EMAIL PROTECTED]
> | Questions should be directed to the list owner/operator: [EMAIL PROTECTED]
> +---

+---
| This is the LINUX5250 Mailing List!
| To submit a new message, send your mail to [EMAIL PROTECTED]
| To subscribe to this list send email to [EMAIL PROTECTED]
| To unsubscribe from this list send email to [EMAIL PROTECTED]
| Questions should be directed to the list owner/operator: [EMAIL PROTECTED]
+---

Reply via email to