Add setting to configure shape.

This commit is contained in:
Simon Gomizelj 2012-06-01 20:43:00 -04:00
parent 2e8c5d3592
commit 17f23074ca
2 changed files with 3 additions and 2 deletions

View File

@ -39,8 +39,8 @@ static const char *colors[16] = {
"#ffffff", // bright white "#ffffff", // bright white
}; };
// SYSTEM, ON or OFF #define CURSOR_BLINK SYSTEM // SYSTEM, ON or OFF
#define CURSOR_BLINK SYSTEM #define CURSOR_SHAPE BLOCK // BLOCK, UNDERLINE or IBEAM
static const bool resize_grip = false; static const bool resize_grip = false;

View File

@ -259,6 +259,7 @@ int main(int argc, char **argv) {
vte_terminal_set_audible_bell(VTE_TERMINAL(vte), audible_bell); vte_terminal_set_audible_bell(VTE_TERMINAL(vte), audible_bell);
vte_terminal_set_visible_bell(VTE_TERMINAL(vte), visible_bell); vte_terminal_set_visible_bell(VTE_TERMINAL(vte), visible_bell);
vte_terminal_set_mouse_autohide(VTE_TERMINAL(vte), mouse_autohide); vte_terminal_set_mouse_autohide(VTE_TERMINAL(vte), mouse_autohide);
vte_terminal_set_cursor_shape(VTE_TERMINAL(vte), CONCAT2(VTE_CURSOR_SHAPE_, CURSOR_SHAPE));
vte_terminal_set_cursor_blink_mode(VTE_TERMINAL(vte), CONCAT2(VTE_CURSOR_BLINK_, CURSOR_BLINK)); vte_terminal_set_cursor_blink_mode(VTE_TERMINAL(vte), CONCAT2(VTE_CURSOR_BLINK_, CURSOR_BLINK));
gtk_window_set_has_resize_grip(GTK_WINDOW(window), resize_grip); gtk_window_set_has_resize_grip(GTK_WINDOW(window), resize_grip);