Interactive line editing/ NEED something like CURSES/ READLINE//// 
Author Message
 Interactive line editing/ NEED something like CURSES/ READLINE////

I want to allow a user to update some  record
in an interactive way. This in TEXT mode.

Is there a module that allow interactive edition of a line .......

ie a session example :

THE shell write out:
Found a strange record !!!!!!!!

_____________________________________________
userkey  [GaP97a]  type  [ARTICLE]  year  [1997]
author  [C. Garcia and C. Peyrat]
title   [Large {C}ayley graphs on an abelian group]
journal [Discrete Applied Mathematics]
pages   [125-133]
number  [2]
volume  [75]
idke    [garcpeyrlargecayleygra]
stdke   [GaPe97]
names   [Garcia Peyrat]

edit it ???? (e [field])
_____________________________________________

the user type in : e title

the screen becomes
__________________________________________
userkey  [GaP97a]  type  [ARTICLE]  year  [1997]
author  [C. Garcia and C. Peyrat]
title   [Large {C}ayley graphs on an abelian group]
journal [Discrete Applied Mathematics]
pages   [125-133]
number  [2]
volume  [75]
idke    [garcpeyrlargecayleygra]
stdke   [GaPe97]
names   [Garcia Peyrat]

editing title !
title   Large {C}ayley graphs on an abelian group [CURSOR]
+____________________________________________

Where (CURSOR) ==  is where it is blinking)

The user can edit the chain on the screen .......

ie if it type delete delete the last line  becomes:

title   Large {C}ayley graphs on an abelian gro[CURSOR]

He can also type C-A  C-E or emacs like controls.

ie with C-A we get the screen

___________________________________________
userkey  [GaP97a]  type  [ARTICLE]  year  [1997]
author  [C. Garcia and C. Peyrat]
title   [Large {C}ayley graphs on an abelian group]
journal [Discrete Applied Mathematics]
pages   [125-133]
number  [2]
volume  [75]
idke    [garcpeyrlargecayleygra]
stdke   [GaPe97]
names   [Garcia Peyrat]

editing title !

title   [CURSOR] Large {C}ayley graphs on an abelian gro[CURSOR]
_________________________________________________________

As you see this is very complicated to do with STDIN/STDOUT
as the term-cap must be used.

In C I know about READLINE.h and CURSES.h

IS THERE SOMETHING LIKE THIS IN PERL
IS IT EASY TO USE.

IF YES I NEED DOC AND EXAMPLES !

THANKS.

--
| Stephane Perennes                      * phone :+33 (0)4 92 38 71 91       |
| INRIA-SLOOP (CNRS-UNSA-INRIA)          * sec :  +33 (0)4 92 38 76 75       |
| 2004 Route des Lucioles                * Fax :  +33 (0)4 92 38 79 71       |

| www: http://www.*-*-*.com/ ;       |



Fri, 24 Aug 2001 03:00:00 GMT  
 Interactive line editing/ NEED something like CURSES/ READLINE////

Quote:

> I want to allow a user to update some record in an interactive
> way. This in TEXT mode.
> IS THERE SOMETHING LIKE THIS IN PERL IS IT EASY TO USE.

> IF YES I NEED DOC AND EXAMPLES !

Why are you shouting?

Go to the CPAN and search for curses.

   http://www.perl.com/CPAN-local/

--

http://pobox.com/~jdf



Fri, 24 Aug 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. integrating GNU Readline and interactive perl scripts

2. Interactive program with command line history/vi mode--help needed

3. Interactive PERL pgm interface done with Curses

4. invoking interactive edit

5. Interactive string editing in DOS?

6. Curses based module for editing tables?

7. Curses based module for editing tables?

8. Term::ReadLine and multiple-line commands?

9. on-line interactive courses for perl?

10. interactive command line in perl script

11. Need help on using Perl as an interactive interface

12. Need a bidirectional filter for interactive Unix applications

 

 
Powered by phpBB® Forum Software