1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-05 03:16:45 +02:00

add line kill and discard ability

This commit is contained in:
Jfreegman
2013-12-05 22:55:14 -05:00
parent 2ad238d69f
commit 7a14845790
7 changed files with 76 additions and 14 deletions

View File

@ -29,6 +29,9 @@
#define EXIT_SUCCESS 0
#define EXIT_FAILURE 1
#define T_KEY_KILL 0xB /* ASCII code for ctrl-k */
#define T_KEY_DISCARD 0x15 /* ASCII code for ctrl-u */
/* Curses foreground colours (background is black) */
enum {
WHITE,
@ -114,7 +117,7 @@ struct PromptBuf {
wchar_t line[MAX_STR_SIZE];
size_t pos;
size_t len;
int orig_y;
int orig_y; /* y axis point of origin for line */
bool scroll; /* used for prompt window hack to determine when to scroll down */
WINDOW *linewin;
};