editor.c
gurba-0.40/lib/std/editor.c · 367 B
From the archive gurba.tgz
Download the archive « Back to the archive contents
void edit( string cmd ) {
cmd = editor( cmd );
if( cmd != 0 ) {
this_player()->write( cmd );
this_player()->write_prompt();
}
if( !query_editor( this_object() ) ) {
this_player()->write( "Left edit." );
this_player()->write_prompt();
}
}
int is_editing( void ) {
if( query_editor( this_object() ) ) {
return( 1 );
}
return( 0 );
}