Thread Korrektureingaben in der Konsole (7 answers)
Opened by der_thomas at 2015-02-20 20:50

hlubenow
 2015-02-20 23:53
#179808 #179808
User since
2009-02-22
875 Artikel
BenutzerIn
[default_avatar]
Die Frage taucht immer mal wieder auf (und bereitet mir jedesmal Kopfzerbrechen, aber diesmal hab' ich's, glaub' ich).
Zunächst zu Term::Completion:
Quote
If you are missing full line editing (left/right, delete to the left and right, jump to the beginning and the end etc.), you are probably wrong here, and want to consider Term::ReadLine and friends.

Ok, dann also "Term::ReadLine and friends". Dies dürfte gehen:
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/perl

use warnings;
use strict;

use Term::ReadLine;

my $wort = "tomas";
my $term = Term::ReadLine->new('example');
$term->ornaments(0);
$wort = $term->readline("", $wort);
print "$wort\n";

View full thread Korrektureingaben in der Konsole