Lines 51-56
Link Here
|
51 |
#define KEY_SCROLLBACK_LINES "scrollback_lines" |
51 |
#define KEY_SCROLLBACK_LINES "scrollback_lines" |
52 |
#define KEY_SCROLL_ON_KEYSTROKE "scroll_on_keystroke" |
52 |
#define KEY_SCROLL_ON_KEYSTROKE "scroll_on_keystroke" |
53 |
#define KEY_SCROLL_ON_OUTPUT "scroll_on_output" |
53 |
#define KEY_SCROLL_ON_OUTPUT "scroll_on_output" |
|
|
54 |
#define KEY_ALTERNATE_SCREEN_SCROLL "alternate_screen_scroll" |
54 |
#define KEY_EXIT_ACTION "exit_action" |
55 |
#define KEY_EXIT_ACTION "exit_action" |
55 |
#define KEY_LOGIN_SHELL "login_shell" |
56 |
#define KEY_LOGIN_SHELL "login_shell" |
56 |
#define KEY_UPDATE_RECORDS "update_records" |
57 |
#define KEY_UPDATE_RECORDS "update_records" |
Lines 118-123
struct _TerminalProfilePrivate
Link Here
|
118 |
guint silent_bell : 1; |
119 |
guint silent_bell : 1; |
119 |
guint scroll_on_keystroke : 1; |
120 |
guint scroll_on_keystroke : 1; |
120 |
guint scroll_on_output : 1; |
121 |
guint scroll_on_output : 1; |
|
|
122 |
guint alternate_screen_scroll : 1; |
121 |
guint login_shell : 1; |
123 |
guint login_shell : 1; |
122 |
guint update_records : 1; |
124 |
guint update_records : 1; |
123 |
guint use_custom_command : 1; |
125 |
guint use_custom_command : 1; |
Lines 538-543
terminal_profile_set_scroll_on_output (T
Link Here
|
538 |
g_free (key); |
540 |
g_free (key); |
539 |
} |
541 |
} |
540 |
|
542 |
|
|
|
543 |
|
544 |
gboolean |
545 |
terminal_profile_get_alternate_screen_scroll (TerminalProfile *profile) |
546 |
{ |
547 |
g_return_val_if_fail (TERMINAL_IS_PROFILE (profile), FALSE); |
548 |
|
549 |
return profile->priv->alternate_screen_scroll; |
550 |
} |
551 |
|
552 |
|
553 |
void |
554 |
terminal_profile_set_alternate_screen_scroll (TerminalProfile *profile, |
555 |
gboolean setting) |
556 |
{ |
557 |
char *key; |
558 |
|
559 |
RETURN_IF_NOTIFYING (profile); |
560 |
|
561 |
key = gconf_concat_dir_and_key (profile->priv->profile_dir, |
562 |
KEY_ALTERNATE_SCREEN_SCROLL); |
563 |
|
564 |
gconf_client_set_bool (profile->priv->conf, |
565 |
key, |
566 |
setting, |
567 |
NULL); |
568 |
|
569 |
g_free (key); |
570 |
} |
571 |
|
572 |
|
541 |
TerminalScrollbarPosition |
573 |
TerminalScrollbarPosition |
542 |
terminal_profile_get_scrollbar_position (TerminalProfile *profile) |
574 |
terminal_profile_get_scrollbar_position (TerminalProfile *profile) |
543 |
{ |
575 |
{ |
Lines 1919-1924
terminal_profile_update (TerminalProfile
Link Here
|
1919 |
UPDATE_INTEGER (KEY_SCROLLBACK_LINES, scrollback_lines); |
1951 |
UPDATE_INTEGER (KEY_SCROLLBACK_LINES, scrollback_lines); |
1920 |
UPDATE_BOOLEAN (KEY_SCROLL_ON_KEYSTROKE, scroll_on_keystroke); |
1952 |
UPDATE_BOOLEAN (KEY_SCROLL_ON_KEYSTROKE, scroll_on_keystroke); |
1921 |
UPDATE_BOOLEAN (KEY_SCROLL_ON_OUTPUT, scroll_on_output); |
1953 |
UPDATE_BOOLEAN (KEY_SCROLL_ON_OUTPUT, scroll_on_output); |
|
|
1954 |
UPDATE_BOOLEAN (KEY_ALTERNATE_SCREEN_SCROLL, alternate_screen_scroll); |
1922 |
UPDATE_STRING (KEY_EXIT_ACTION, exit_action); |
1955 |
UPDATE_STRING (KEY_EXIT_ACTION, exit_action); |
1923 |
UPDATE_BOOLEAN (KEY_LOGIN_SHELL, login_shell); |
1956 |
UPDATE_BOOLEAN (KEY_LOGIN_SHELL, login_shell); |
1924 |
UPDATE_BOOLEAN (KEY_UPDATE_RECORDS, update_records); |
1957 |
UPDATE_BOOLEAN (KEY_UPDATE_RECORDS, update_records); |
Lines 2064-2069
else if (strcmp (key, KName) == 0)
Link Here
|
2064 |
UPDATE_INTEGER (KEY_SCROLLBACK_LINES, scrollback_lines, profile->priv->scrollback_lines); |
2097 |
UPDATE_INTEGER (KEY_SCROLLBACK_LINES, scrollback_lines, profile->priv->scrollback_lines); |
2065 |
UPDATE_BOOLEAN (KEY_SCROLL_ON_KEYSTROKE, scroll_on_keystroke, FALSE); |
2098 |
UPDATE_BOOLEAN (KEY_SCROLL_ON_KEYSTROKE, scroll_on_keystroke, FALSE); |
2066 |
UPDATE_BOOLEAN (KEY_SCROLL_ON_OUTPUT, scroll_on_output, FALSE); |
2099 |
UPDATE_BOOLEAN (KEY_SCROLL_ON_OUTPUT, scroll_on_output, FALSE); |
|
|
2100 |
UPDATE_BOOLEAN (KEY_ALTERNATE_SCREEN_SCROLL, alternate_screen_scroll, FALSE); |
2067 |
UPDATE_STRING (KEY_EXIT_ACTION, exit_action, NULL); |
2101 |
UPDATE_STRING (KEY_EXIT_ACTION, exit_action, NULL); |
2068 |
UPDATE_BOOLEAN (KEY_LOGIN_SHELL, login_shell, FALSE); |
2102 |
UPDATE_BOOLEAN (KEY_LOGIN_SHELL, login_shell, FALSE); |
2069 |
UPDATE_BOOLEAN (KEY_UPDATE_RECORDS, update_records, FALSE); |
2103 |
UPDATE_BOOLEAN (KEY_UPDATE_RECORDS, update_records, FALSE); |
Lines 2662-2667
terminal_profile_create (TerminalProfile
Link Here
|
2662 |
|
2696 |
|
2663 |
BAIL_OUT_CHECK (); |
2697 |
BAIL_OUT_CHECK (); |
2664 |
|
2698 |
|
|
|
2699 |
g_free (key); |
2700 |
key = gconf_concat_dir_and_key (profile_dir, |
2701 |
KEY_ALTERNATE_SCREEN_SCROLL); |
2702 |
|
2703 |
gconf_client_set_bool (base_profile->priv->conf, |
2704 |
key, |
2705 |
base_profile->priv->alternate_screen_scroll, |
2706 |
&err); |
2707 |
|
2708 |
BAIL_OUT_CHECK (); |
2709 |
|
2665 |
|
2710 |
|
2666 |
g_free (key); |
2711 |
g_free (key); |
2667 |
key = gconf_concat_dir_and_key (profile_dir, |
2712 |
key = gconf_concat_dir_and_key (profile_dir, |