2021-08-03 01:37:06 -04:00
|
|
|
/* random.h -- various commands */
|
|
|
|
|
2013-05-20 01:16:08 -04:00
|
|
|
#ifndef _RANDOM_H_
|
|
|
|
#define _RANDOM_H_
|
|
|
|
|
2021-08-03 01:37:06 -04:00
|
|
|
#include "names.h"
|
2016-02-24 08:17:45 -05:00
|
|
|
|
2021-08-03 01:37:06 -04:00
|
|
|
/* Command flags */
|
|
|
|
#define CFCPCN 0x0001 /* Flag that last command was C-P, C-N */
|
|
|
|
#define CFKILL 0x0002 /* Flag that last command was a kill */
|
2016-02-24 08:17:45 -05:00
|
|
|
|
2021-08-03 01:37:06 -04:00
|
|
|
extern int thisflag ; /* Flags, this command */
|
|
|
|
extern int lastflag ; /* Flags, last command */
|
2013-09-25 03:37:07 -04:00
|
|
|
|
2021-08-03 01:37:06 -04:00
|
|
|
extern int fillcol ; /* Fill column */
|
2016-02-24 08:17:45 -05:00
|
|
|
extern boolean hardtab ; /* Use hard tab instead of soft tab */
|
2013-10-09 23:13:49 -04:00
|
|
|
|
2013-05-20 01:16:08 -04:00
|
|
|
|
|
|
|
int getcline( void) ;
|
|
|
|
int getccol( int bflg) ;
|
2017-05-18 00:16:07 -04:00
|
|
|
boolean setccol( int pos) ;
|
2021-08-03 01:37:06 -04:00
|
|
|
|
|
|
|
/* Bindable functions */
|
|
|
|
BINDABLE( setfillcol) ;
|
|
|
|
BINDABLE( showcpos) ;
|
2016-05-20 08:42:37 -04:00
|
|
|
boolean twiddle( int f, int n) ;
|
2021-08-03 01:37:06 -04:00
|
|
|
BINDABLE( quote) ;
|
|
|
|
BINDABLE( insert_tab) ;
|
|
|
|
BINDABLE( detab) ;
|
|
|
|
BINDABLE( entab) ;
|
|
|
|
BINDABLE( trim) ;
|
|
|
|
BINDABLE( openline) ;
|
|
|
|
BINDABLE( insert_newline) ;
|
|
|
|
BINDABLE( deblank) ;
|
|
|
|
BINDABLE( indent) ;
|
|
|
|
BINDABLE( forwdel) ;
|
|
|
|
BINDABLE( backdel) ;
|
|
|
|
BINDABLE( killtext) ;
|
|
|
|
BINDABLE( setemode) ;
|
|
|
|
BINDABLE( delmode) ;
|
|
|
|
BINDABLE( setgmode) ;
|
|
|
|
BINDABLE( delgmode) ;
|
|
|
|
BINDABLE( istring) ;
|
|
|
|
BINDABLE( ovstring) ;
|
2013-05-20 01:16:08 -04:00
|
|
|
|
|
|
|
#endif
|
2021-08-03 01:37:06 -04:00
|
|
|
|
|
|
|
/* end of random.h */
|