/*
* Copyright 1995, 2016 Perforce Software. All rights reserved.
*
* This file is part of Perforce - the FAST SCM System.
*/
class MapTable;
/*
* ClientUserColor -- version of output that displays ANSI colors
*/
class ClientUserColor : public ClientUser {
public:
ClientUserColor( int forceColors = 0,
int autoLoginPrompt = 1 );
~ClientUserColor();
virtual void HandleError( Error* err );
virtual void Message( Error* err );
virtual void SetQuiet();
virtual void OutputAnsiInfo( char level, const char *data );
private:
int ColorMessage( Error *err, int color, StrBuf &out,
int flag );
void FmtError( StrBuf &buf, Error *err, int opts,
StrDict *tags );
void OutputStream( const char *t, int l, FILE *s );
void OutputAnsiStream( const char *t, FILE *s );
void SetColor( int type, int fg, int bg, FILE *stream );
void ResetColor( FILE *stream );
StrDict *GetColors();
int GetColors( StrDict *tags, MapTable &c );
StrDict *colors;
MapTable *conditionals;
int quiet;
int outColor;
int errColor;
#ifdef OS_NT
void *hConsoleOut;
void *hConsoleErr;
short oldColors;
#endif
} ;
# |
Change |
User |
Description |
Committed |
|
#1
|
22562 |
rlranft |
Populate -o //guest/perforce_software/p4/2017-1/...
//guest/rlranft/p4/2017-1/.... |
|
|
//guest/perforce_software/p4/2017-1/client/clientusercolor.h |
#1
|
22288 |
mark_mears |
import 2017.1 code drop |
|
|