Merge pull request #10 from vodik/settings

Add setting to configure shape.
This commit is contained in:
Daniel Micay 2012-06-02 02:18:25 -07:00
commit 9202f926f6
2 changed files with 3 additions and 2 deletions

View File

@ -39,8 +39,8 @@ static const char *colors[16] = {
"#ffffff", // bright white
};
// SYSTEM, ON or OFF
#define CURSOR_BLINK SYSTEM
#define CURSOR_BLINK SYSTEM // SYSTEM, ON or OFF
#define CURSOR_SHAPE BLOCK // BLOCK, UNDERLINE or IBEAM
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_visible_bell(VTE_TERMINAL(vte), visible_bell);
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));
gtk_window_set_has_resize_grip(GTK_WINDOW(window), resize_grip);