aboutsummaryrefslogtreecommitdiffhomepage
path: root/output.h
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2005-10-17 23:24:12 +1000
committerGravatar axel <axel@liljencrantz.se>2005-10-17 23:24:12 +1000
commit17c4835f08ad60df7ecde02eba4d9d47ae5a055d (patch)
treeec55e5bea79b3d47d08b6b07ba2c60d07095c62d /output.h
parentcc816997a427e64cae56b41cc836ebf6d103dadb (diff)
Initial imlementation of uname shellscript function
darcs-hash:20051017132412-ac50b-0c82581051eb6819ae8316a27f4b83401446e3df.gz
Diffstat (limited to 'output.h')
-rw-r--r--output.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/output.h b/output.h
index 8fac423d..6532a48b 100644
--- a/output.h
+++ b/output.h
@@ -1,3 +1,6 @@
+/** \file output.h
+ Generic output functions
+*/
/**
Constants for various character classifications. Each character of a command string can be classified as one of the following types.
*/
@@ -81,20 +84,46 @@ void set_color( int c, int c2 );
*/
int writembs( char *str );
+/**
+ Write a wide character to fd 1.
+*/
int writech( wint_t ch );
+/**
+ Write a wide character string to FD 1.
+*/
void writestr( const wchar_t *str );
+/**
+ Write a wide character string to FD 1. If the string is wider than
+ the specified maximum, truncate and ellipsize it.
+*/
void writestr_ellipsis( const wchar_t *str, int max_width );
+/**
+ Escape and write a string to fd 1
+*/
int write_escaped_str( const wchar_t *str, int max_len );
+/**
+ parm_ich seems to often be undefined, so we use this
+ workalike. Writes the specified number of spaces.
+*/
int writespace( int c );
+/**
+ Return the internal color code representing the specified color
+*/
int output_color_code( const wchar_t *val );
+/**
+ Initialize static data
+*/
void output_init();
+/**
+ Destroy static data
+*/
void output_destroy();
#endif