X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Fcmdline_vt100.h;h=824bed3fbfeaa54fbb2fefe72f455106e5c57942;hb=504b523d94543a7bb7301a3b1bfe929aabf7fb36;hp=4d64bfc73daee5e780f09e150352e519288dc949;hpb=ebb34ff512a9ab83c22fad013196d8c1667afd4d;p=libcmdline.git diff --git a/src/lib/cmdline_vt100.h b/src/lib/cmdline_vt100.h index 4d64bfc..824bed3 100644 --- a/src/lib/cmdline_vt100.h +++ b/src/lib/cmdline_vt100.h @@ -133,10 +133,12 @@ struct cmdline_vt100 { */ void vt100_init(struct cmdline_vt100 *vt); +#define VT100_STD_CHAR -1 +#define VT100_NOT_COMPLETE -2 /** * Input a new character. - * Return -1 if the character is not part of a control sequence - * Return -2 if c is not the last char of a control sequence + * Return VT100_STD_CHAR if the character is not part of a control sequence + * Return VT100_NOT_COMPLETE if c is not the last char of a control sequence * Else return the index in vt100_commands[] */ int vt100_parser(struct cmdline_vt100 *vt, char c);