/ Forside / Teknologi / Udvikling / Perl / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
Perl
#NavnPoint
bjarneA 141
poul_from 50
soccer 30
Nicknack 14
Tmpj 0
keyboardstatus
Fra : Martin


Dato : 22-08-01 10:20

i want to read a character from keyboard in a shellscript but without
strike enter but ??

2. how can i print on screen in color under linux?

 
 
hal9000 (22-08-2001)
Kommentar
Fra : hal9000


Dato : 22-08-01 11:35

Martin wrote:
>
> i want to read a character from keyboard in a shellscript but without
> strike enter but ??
>

Mon ikke du mener perl-script? Så tag et kig på Term::ReadKey

> 2. how can i print on screen in color under linux?

Du kan prøve med ANSI escape-koder (Term::ANSIColor) eller med kald af
tput (virker i hvert fald for FBSD).

--
hal9000 ~~ mailto:hal9000@fetchmail.com

Nezar Nielsen (22-08-2001)
Kommentar
Fra : Nezar Nielsen


Dato : 22-08-01 11:31

"Martin" <martin@ppmedia.at> skrev i en meddelelse
news:3B837937.40CBAF7@ppmedia.at...
> i want to read a character from keyboard in a shellscript but without
> strike enter but ??

Have a look at Term::ReadKey

> 2. how can i print on screen in color under linux?

Have a look at Term::ANSIColor

When looking for such things, always try to go to http://search.cpan.org/
and do a search first.

--
Mvh. Nezar Nielsen
http://fez.dk/




Søg
Reklame
Statistik
Spørgsmål : 177558
Tips : 31968
Nyheder : 719565
Indlæg : 6408925
Brugere : 218888

Månedens bedste
Årets bedste
Sidste års bedste