1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
//#[test]
//fn session_options_ctl() {
//use crate::{SessionOptionsCtl, Tmux};
//let session_options_ctl = SessionOptionsCtl::default();
//let session_options = session_options_ctl.get_global_all().unwrap();
//dbg!(session_options);
//let session_options = session_options_ctl.get_local_all().unwrap();
//dbg!(session_options);
//}
//#[test]
//fn session_options_ctl() {
//use crate::SessionOptionsCtl;
//use crate::Tmux;
//let server_option_ctl = SessionOptionsCtl::default();
//let server_option_ctl = ServerOption::new(|cmd| Tmux::with_command(cmd).output());
//#[cfg(feature = "tmux_3_1")]
//let backspace = server_option_ctl.get_backspace().unwrap();
//#[cfg(feature = "tmux_1_5")]
//let buffer_limit = server_option_ctl.get_buffer_limit().unwrap();
//dbg!(buffer_limit);
//#[cfg(feature = "tmux_2_4")]
//let command_alias = server_option_ctl.get_command_alias().unwrap();
//#[cfg(feature = "tmux_3_2")]
//let copy_command = server_option_ctl.get_copy_command().unwrap();
//#[cfg(feature = "tmux_2_1")]
//let default_terminal = server_option_ctl.get_default_terminal().unwrap();
//#[cfg(feature = "tmux_1_2")]
//let escape_time = server_option_ctl.get_escape_time().unwrap();
//#[cfg(feature = "tmux_3_2")]
//let editor = server_option_ctl.get_editor().unwrap();
//#[cfg(feature = "tmux_2_7")]
//let exit_empty = server_option_ctl.get_exit_empty().unwrap();
//#[cfg(feature = "tmux_1_4")]
//let exit_unattached = server_option_ctl.get_exit_unattached().unwrap();
//#[cfg(feature = "tmux_3_2")]
//let extended_keys = server_option_ctl.get_extended_keys().unwrap();
//#[cfg(feature = "tmux_1_9")]
//let focus_events = server_option_ctl.get_focus_events().unwrap();
//#[cfg(feature = "tmux_2_1")]
//let history_file = server_option_ctl.get_history_file().unwrap();
//#[cfg(feature = "tmux_2_0")]
//let message_limit = server_option_ctl.get_message_limit().unwrap();
//#[cfg(feature = "tmux_3_3")]
//let prompt_history_limit = server_option_ctl.get_prompt_history_limit().unwrap();
//#[cfg(feature = "tmux_1_5")]
//let set_clipboard = server_option_ctl.get_set_clipboard().unwrap();
//#[cfg(feature = "tmux_3_2")]
//let terminal_features = server_option_ctl.get_terminal_features().unwrap();
//#[cfg(feature = "tmux_2_0")]
//let terminal_overrides = server_option_ctl.get_terminal_overrides().unwrap();
//#[cfg(feature = "tmux_3_0")]
//let user_keys = server_option_ctl.get_user_keys().unwrap();
//#[cfg(all(feature = "tmux_1_2", not(feature = "tmux_2_0")))]
//let quiet = server_option_ctl.get_quiet().unwrap();
//#[cfg(all(feature = "tmux_1_3", not(feature = "tmux_1_4")))]
//let detach_on_destroy = server_option_ctl.get_detach_on_destroy().unwrap();
//let buffer_limit = ServerOption::default().get_buffer_limit().unwrap();
//let buffer_limit = ServerOption::default().get_command_alias().unwrap();
//dbg!(buffer_limit);
//let buffer_limit = ServerOption::default()
//.set_command_alias(Some(["asdf"]))
//.unwrap();
//dbg!(buffer_limit);
//let buffer_limit = ServerOption::default().get_command_alias().unwrap();
//dbg!(buffer_limit);
//server_option_ctl.set_buffer_limit(buffer_limit);
//let buffer_limit = server_option_ctl.get_buffer_limit();
//dbg!(buffer_limit);
//}