LPC Library Functions: query_ed_mode

NAME

query_ed_mode() - find out the status of the current editor session

SYNOPSIS

int query_ed_mode()

DESCRIPTION

Finds the status of the ed session for the current object, if one exists. It returns:

  • 0 - the current object is at a normal ed prompt (':')
  • -1 - the current object isn't in ed
  • -2 - the current object is at the more prompt in the middle of help
  • >0 - the object is at a prompt for a line. The number is the line number.

Note that the user interface is the mudlib's responsibility; although the editor might be at a virtual ':' prompt, the user may see something completely different.

This efun is available only if the driver flag OLD_ED is not defined.

SEE ALSO

ed_start(), ed_cmd(), ed()

Page design by Frank Jacquette & Tim Hollebeek
Copyright (C) 1998 Tim Hollebeek & Frank Jacquette
Back to MudOS