diff options
| author | Michael Brown | 2006-12-20 00:24:16 +0100 |
|---|---|---|
| committer | Michael Brown | 2006-12-20 00:24:16 +0100 |
| commit | 66007fa448e3a0ced0c8c6d13a8fad281c483055 (patch) | |
| tree | b350c576b43d936a967f8df75ff6ae152e4d836d /src/include/gpxe/editstring.h | |
| parent | Explicitly move cursor to top-left of screen, in case the clear screen (diff) | |
| download | ipxe-66007fa448e3a0ced0c8c6d13a8fad281c483055.tar.gz ipxe-66007fa448e3a0ced0c8c6d13a8fad281c483055.tar.xz ipxe-66007fa448e3a0ced0c8c6d13a8fad281c483055.zip | |
Provide an edit history to allow caller to efficiently update display.
Diffstat (limited to 'src/include/gpxe/editstring.h')
| -rw-r--r-- | src/include/gpxe/editstring.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/include/gpxe/editstring.h b/src/include/gpxe/editstring.h index 7dc96d9aa..7f3c5dcb1 100644 --- a/src/include/gpxe/editstring.h +++ b/src/include/gpxe/editstring.h @@ -1,5 +1,5 @@ -#ifndef _EDITSTRING_H -#define _EDITSTRING_H +#ifndef _GPXE_EDITSTRING_H +#define _GPXE_EDITSTRING_H /** @file * @@ -15,8 +15,17 @@ struct edit_string { size_t len; /** Cursor position */ unsigned int cursor; + + /* The following items are the edit history */ + + /** Last cursor position */ + unsigned int last_cursor; + /** Start of modified portion of string */ + unsigned int mod_start; + /** End of modified portion of string */ + unsigned int mod_end; }; extern int edit_string ( struct edit_string *string, int key ); -#endif /* _EDITSTRING_H */ +#endif /* _GPXE_EDITSTRING_H */ |
