summaryrefslogtreecommitdiff
path: root/src/gui/curses/gui-input.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2004-08-25 20:51:25 +0000
committerSebastien Helleu <flashcode@flashtux.org>2004-08-25 20:51:25 +0000
commit9c6f2fcb8c6c6aded37dfef7adc391503ab698e5 (patch)
treec1e64492e79a42fdac656f80267947a196454098 /src/gui/curses/gui-input.c
parent74ee53c102bf97a5b2b8859510696454972837f6 (diff)
downloadweechat-9c6f2fcb8c6c6aded37dfef7adc391503ab698e5.zip
Added Ctrl-L key to redraw terminal
Diffstat (limited to 'src/gui/curses/gui-input.c')
-rw-r--r--src/gui/curses/gui-input.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/curses/gui-input.c b/src/gui/curses/gui-input.c
index 8a501df02..1b78cb556 100644
--- a/src/gui/curses/gui-input.c
+++ b/src/gui/curses/gui-input.c
@@ -60,8 +60,7 @@ gui_read_keyb ()
{
/* resize event */
case KEY_RESIZE:
- gui_calculate_pos_size (gui_current_window);
- gui_redraw_buffer (gui_current_window->buffer);
+ gui_curses_resize_handler ();
break;
/* inactive function keys */
case KEY_F(1):
@@ -201,6 +200,10 @@ gui_read_keyb ()
case 0x08:
gui_delete_previous_word (gui_current_window->buffer);
break;
+ /* Control + L */
+ case 0x0C:
+ gui_curses_resize_handler ();
+ break;
/* erase char under cursor */
case KEY_DC:
if (gui_current_window->buffer->input_buffer_pos <
@@ -398,7 +401,7 @@ gui_read_keyb ()
/* other key => add to input buffer */
default:
/*gui_printf (gui_current_window->buffer,
- "[Debug] key pressed = %d, as octal: %o\n", key, key);*/
+ "[Debug] key pressed = %d, hex = %02X, octal = %o\n", key, key, key);*/
new_char[0] = key;
new_char[1] = '\0';
gui_buffer_insert_string (gui_current_window->buffer,