void vfu_draw( int n ) { VFU_CHECK_LIST_POS( n ); if ( n < FLP || n > FLP + PS ) return; /* we are out of screen -- don't draw */ TF* fi = files_list[n]; int c = fi->color(); /* color to be used */ VString view = fi->view(); if ( fi->sel ) { str_set_ch( view, sel_mark_pos, '#' ); c = CONCOLOR(cBLACK,cWHITE); } if ( n == FLI ) { str_set_ch( view, tag_mark_pos , TAGMARKS[opt.tag_mark_type][0] ); str_set_ch( view, tag_mark_pos+1, TAGMARKS[opt.tag_mark_type][1] ); c += cBOLD; /* this is a hack, can be removed w/o warning :) -- more visibility */ if ( c == 120 ) c = cTAG; // 116; // 123; // 63; // 123 } con_out( 1, n - FLP + 4, view, c ); // con_ce( c ); }
* * SEE `README',`LICENSE' OR `COPYING' FILE FOR LICENSE AND OTHER DETAILS! * ****************************************************************************/ #include "form_in.h" #include "scroll.h" BSet FI_LETTERS = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; BSet FI_DIGITS = "0123456789"; BSet FI_ALPHANUM = FI_LETTERS & FI_DIGITS; BSet FI_REALS = FI_DIGITS & "Ee+-."; BSet FI_USERS = ""; BSet FI_MASKS = "A#$U"; // A-any, #-int, $-real, U-users int EditStrBF = CONCOLOR( chWHITE, cBLUE ); int EditStrFH = CONCOLOR( cBLACK, cWHITE ); int TextInput( int x, int y, const char *prompt, int maxlen, int fieldlen, VString *strres, void (*handlekey)( int key, VString &s, int &pos ) ) { int res = 0; int insert = 1; VString str = *strres; VString tmp; int ch; ScrollPos scroll; scroll.set_min_max( 0, str_len( str ) ); scroll.set_pagesize( fieldlen ); scroll.go( str_len(str) );
void con_bg( int color ) { __bg = color; __ta = CONCOLOR(__fg,__bg); textattr( __ta ); }
void con_bg( int color ) { __bg=color; con_ta( CONCOLOR( __fg, __bg ) ); }