first commit - moved from local dev to git
This commit is contained in:
29
tools/sboot-03/src/editor.h
Normal file
29
tools/sboot-03/src/editor.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#ifndef EDITOR_H
|
||||
|
||||
#define EDIT_BUF_DEFAULT_BLOCKSIZE 255;
|
||||
|
||||
struct s_edit_buf {
|
||||
char * data;
|
||||
unsigned long used;
|
||||
unsigned long size;
|
||||
int blocksize;
|
||||
int lines;
|
||||
unsigned long scroll_x;
|
||||
unsigned long scroll_y;
|
||||
unsigned long cursor;
|
||||
long redraw_start_at_char;
|
||||
long redraw_limit_lines;
|
||||
long redraw_limit_chars;
|
||||
};
|
||||
|
||||
int edit_buf_init( struct s_edit_buf * buf);
|
||||
void edit_buf_destroy( struct s_edit_buf * buf );
|
||||
char * edit_text( char * title, char * text );
|
||||
void end_edit_text( void );
|
||||
|
||||
/*void editor_input( char c, unsigned long where );
|
||||
void editor_scroll_x( int n, unsigned char abs );
|
||||
void editor_scroll_y( int n, unsigned char abs );
|
||||
void editor_place_caret( unsigned long x, unsigned long y );
|
||||
*/
|
||||
#endif
|
||||
Reference in New Issue
Block a user