helper.h File Reference

#include "defs.h"
#include "commands.h"

Go to the source code of this file.

Functions

char * nc_prompt (struct _application *app, int ny, int nx, int length, const char *fmt,...)
char * nc_input (struct _application *app, int ny, int nx, int length)
int nc_get_coplist_index (struct _application *app, const char *copname)
int nc_get_copindex (struct _application *app, const char *copname)


Function Documentation

int nc_get_copindex ( struct _application app,
const char *  copname 
)

Returns the position of chain operator named copname after the cop-list command. This method does the same as the above except that it starts counting from 1. This is done to properly map chain operator indices.

int nc_get_coplist_index ( struct _application app,
const char *  copname 
)

Returns the position of chain operator named copname after the cop-list command. As this method determines the position within a list, counting starts from zero.

char* nc_input ( struct _application app,
int  ny,
int  nx,
int  length 
)

Read input from window at pos ny and nx of maxlength length

char* nc_prompt ( struct _application app,
int  ny,
int  nx,
int  length,
const char *  fmt,
  ... 
)

Prompts for input of maximum length length at position ny and nx. Returns the input or NULL


Generated on Wed Sep 9 22:23:17 2009 for N-Chains by  doxygen 1.5.6