2000-01-19 00:30:24 +01:00
|
|
|
/*
|
|
|
|
* psql - the PostgreSQL interactive terminal
|
|
|
|
*
|
2003-08-05 01:59:41 +02:00
|
|
|
* Copyright (c) 2000-2003, PostgreSQL Global Development Group
|
2000-01-19 00:30:24 +01:00
|
|
|
*
|
2003-08-05 01:59:41 +02:00
|
|
|
* $Header: /cvsroot/pgsql/src/bin/psql/prompt.h,v 1.12 2003/08/04 23:59:40 tgl Exp $
|
2000-01-19 00:30:24 +01:00
|
|
|
*/
|
1999-11-04 22:56:02 +01:00
|
|
|
#ifndef PROMPT_H
|
|
|
|
#define PROMPT_H
|
|
|
|
|
1999-11-05 00:14:30 +01:00
|
|
|
typedef enum _promptStatus
|
|
|
|
{
|
2001-10-28 07:26:15 +01:00
|
|
|
PROMPT_READY,
|
|
|
|
PROMPT_CONTINUE,
|
|
|
|
PROMPT_COMMENT,
|
|
|
|
PROMPT_SINGLEQUOTE,
|
|
|
|
PROMPT_DOUBLEQUOTE,
|
|
|
|
PROMPT_PAREN,
|
|
|
|
PROMPT_COPY
|
2000-04-12 19:17:23 +02:00
|
|
|
} promptStatus_t;
|
1999-11-04 22:56:02 +01:00
|
|
|
|
2000-04-12 19:17:23 +02:00
|
|
|
char *get_prompt(promptStatus_t status);
|
2001-10-28 07:26:15 +01:00
|
|
|
|
2001-11-05 18:46:40 +01:00
|
|
|
#endif /* PROMPT_H */
|