2021-08-03 05:37:06 +00:00
|
|
|
/* random.h -- various commands */
|
2013-05-20 05:16:08 +00:00
|
|
|
#ifndef _RANDOM_H_
|
|
|
|
#define _RANDOM_H_
|
|
|
|
|
2021-08-03 05:37:06 +00:00
|
|
|
#include "names.h"
|
2016-02-24 13:17:45 +00:00
|
|
|
|
2021-08-03 05:37:06 +00:00
|
|
|
/* Command flags */
|
2021-08-13 03:06:58 +00:00
|
|
|
#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 13:17:45 +00:00
|
|
|
|
2021-08-13 03:06:58 +00:00
|
|
|
extern int thisflag ; /* Flags, this command */
|
|
|
|
extern int lastflag ; /* Flags, last command */
|
2013-09-25 07:37:07 +00:00
|
|
|
|
2021-08-13 03:06:58 +00:00
|
|
|
extern int fillcol ; /* Fill column */
|
|
|
|
extern boolean hardtab ; /* Use hard tab instead of soft tab */
|
2013-10-10 03:13:49 +00:00
|
|
|
|
2013-05-20 05:16:08 +00:00
|
|
|
|
|
|
|
int getcline( void) ;
|
|
|
|
int getccol( int bflg) ;
|
2017-05-18 04:16:07 +00:00
|
|
|
boolean setccol( int pos) ;
|
2021-08-03 05:37:06 +00:00
|
|
|
|
|
|
|
/* Bindable functions */
|
2021-08-13 03:06:58 +00:00
|
|
|
BINDABLE( setfillcol) ;
|
|
|
|
BINDABLE( showcpos) ;
|
|
|
|
BBINDABLE( twiddle) ;
|
|
|
|
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 05:16:08 +00:00
|
|
|
|
|
|
|
#endif
|
2021-08-03 05:37:06 +00:00
|
|
|
/* end of random.h */
|