Your SOPW is so close to incomprehensible (to me, OMMV, or incoherent) that I'm merely making a WAG as to your intent. But because the code below probably won't help much, please explain why you seem to be using Term::ReadLine to WRITE to a console. 1.
#!/usr/bin/perl use strict; use warnings; use 5.018; use Term::Readline; my $term_out = "This is a test. This is being written from a terminal. + As I write, I get closer to the edge. \nThe prompt continues on the +line below without me hitting the return key.\n When I press up with +an arrow key, nothing untoward happens on W7 w/perl v 5.018."; my $term = Term::ReadLine->new("APP DESCRIPTION"); my $OUT = $term->OUT|| *STDOUT; $term->addhistory(my $fake_line); my $line = $term->readline("Strike RETURN to continue: "); say $line . $term_out;
Note the use of strict and warnings.
1. Perhaps this fragment from Term::Readline's doc has sent you in the direction shown in your parent node.
"new" returns the handle for subsequent calls to following functions. Argument is the name of the application. Optionally can be followed by two arguments for "IN" and "OUT" filehandles. These arguments should be globs. "readline" gets an input line, *possibly* with actual "readline" support. Trailing newline is removed. Returns "undef" on "EOF". "addhistory" adds the line to the history of input, from where it can +be used if the actual "readline" is present.
If so, please offer a (minimal) version of the full code which displays the same anomalies (control chars) you mentioned and a sample of the source text
In reply to Re: Revising Input Method
by ww
in thread Revising Input Method
by PinePerl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |