|
@ -1,4 +1,4 @@ |
|
|
/* $OpenBSD: vis.h,v 1.11 2005/08/09 19:38:31 millert Exp $ */ |
|
|
|
|
|
|
|
|
/* $OpenBSD: vis.h,v 1.12 2010/08/23 02:07:50 djm Exp $ */ |
|
|
/* $NetBSD: vis.h,v 1.4 1994/10/26 00:56:41 cgd Exp $ */ |
|
|
/* $NetBSD: vis.h,v 1.4 1994/10/26 00:56:41 cgd Exp $ */ |
|
|
|
|
|
|
|
|
/*- |
|
|
/*- |
|
@ -40,6 +40,7 @@ |
|
|
*/ |
|
|
*/ |
|
|
#define VIS_OCTAL 0x01 /* use octal \ddd format */ |
|
|
#define VIS_OCTAL 0x01 /* use octal \ddd format */ |
|
|
#define VIS_CSTYLE 0x02 /* use \[nrft0..] where appropriate */ |
|
|
#define VIS_CSTYLE 0x02 /* use \[nrft0..] where appropriate */ |
|
|
|
|
|
#define VIS_HEX 0x200 /* use hex \xdd format */ |
|
|
|
|
|
|
|
|
/* |
|
|
/* |
|
|
* to alter set of characters encoded (default is to encode all |
|
|
* to alter set of characters encoded (default is to encode all |
|
@ -50,6 +51,7 @@ |
|
|
#define VIS_NL 0x10 /* also encode newline */ |
|
|
#define VIS_NL 0x10 /* also encode newline */ |
|
|
#define VIS_WHITE (VIS_SP | VIS_TAB | VIS_NL) |
|
|
#define VIS_WHITE (VIS_SP | VIS_TAB | VIS_NL) |
|
|
#define VIS_SAFE 0x20 /* only encode "unsafe" characters */ |
|
|
#define VIS_SAFE 0x20 /* only encode "unsafe" characters */ |
|
|
|
|
|
#define VIS_ALL 0x400 /* encode all characters */ |
|
|
|
|
|
|
|
|
/* |
|
|
/* |
|
|
* other |
|
|
* other |
|
|