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

redesign text input field to scroll horizontally, increase max string size

This commit is contained in:
Jfreegman
2014-06-20 23:08:13 -04:00
parent 3e797db16e
commit 9f4248b1e1
7 changed files with 94 additions and 56 deletions

View File

@ -36,8 +36,8 @@
#include "toxic.h"
#define MAX_WINDOWS_NUM 32
#define CURS_Y_OFFSET 3 /* y-axis cursor offset for chat contexts */
#define CHATBOX_HEIGHT 4
#define CURS_Y_OFFSET 1 /* y-axis cursor offset for chat contexts */
#define CHATBOX_HEIGHT 2
/* Curses foreground colours (background is black) */
enum {
@ -150,6 +150,7 @@ struct ChatContext {
wchar_t line[MAX_STR_SIZE];
size_t pos;
size_t len;
size_t start; /* the position to start printing line at */
wchar_t ln_history[MAX_LINE_HIST][MAX_STR_SIZE]; /* history for input lines/commands */
int hst_pos;