ncreader: define NCREADER_OPTIONS_EMACSKEYS

pull/991/head
nick black 4 years ago
parent dd4b97e06e
commit 3afcfc97d6
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -18,6 +18,7 @@ struct notcurses;
#define NCREADER_OPTION_HORSCROLL 0x0001
#define NCREADER_OPTION_VERSCROLL 0x0002
#define NCREADER_OPTION_NOCMDKEYS 0x0004
typedef struct ncreader_options {
uint64_t tchannels; // channels used for input
@ -85,8 +86,6 @@ preserving whitespace.
Support for **NCREADER_OPTION_VERSCROLL** is not yet implemented.
Ideally, most of the functionality of **readline(3)** will be implemented.
**ncreader** does not buffer inputs in order to assemble EGCs from them. If
inputs are to be processed as EGCs (as they should), the caller would need
assemble the grapheme clusters. Of course, there is not yet any API through

@ -3014,8 +3014,12 @@ API int ncsubproc_destroy(struct ncsubproc* n);
API int ncplane_qrcode(struct ncplane* n, ncblitter_e blitter, int* ymax,
int* xmax, const void* data, size_t len);
#define NCREADER_OPTION_HORSCROLL 0x0001ull
#define NCREADER_OPTION_VERSCROLL 0x0002ull
// Enable horizontal scrolling. Virtual lines can then grow arbitrarily long.
#define NCREADER_OPTION_HORSCROLL 0x0001ull
// Enable vertical scrolling. You can then use arbitrarily many virtual lines.
#define NCREADER_OPTION_VERSCROLL 0x0002ull
// Disable all editing shortcuts. By default, emacs-style keys are available.
#define NCREADER_OPTION_NOCMDKEYS 0x0004ull
typedef struct ncreader_options {
uint64_t tchannels; // channels used for input

Loading…
Cancel
Save