tmux_interface 0.4.0

Rust language library for communication with TMUX via CLI
Documentation
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
use super::Variable;
use std::fmt;

#[derive(Debug)]
pub struct Formats {
    // XXX: string or char, join(), split() ?
    pub separator: char,
    pub variables: Vec<Variable>,
}

impl Default for Formats {
    fn default() -> Self {
        Formats {
            separator: '\'',
            variables: Vec::new(),
        }
    }
}

impl fmt::Display for Formats {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        let output = self
            .variables
            .iter()
            .map(|v| v.to_string())
            .collect::<Vec<String>>()
            .join(&self.separator.to_string());
        write!(f, "{}", output)
    }
}

impl Formats {
    pub fn new() -> Self {
        Default::default()
    }

    /// set separator character
    pub fn separator(&mut self, c: char) -> &mut Self {
        self.separator = c;
        self
    }

    /// append with variable
    pub fn push(&mut self, variable: Variable) {
        self.variables.push(variable)
    }

    // TODO: check vec same size, return type?
    // XXX: mb from_string for default format too?
    // pub fn custom_string(String) pub fn custom_usize(String)

    // tmux variables

    /// `alternate_on` - if pane is in alternate screen
    #[cfg(feature = "tmux_1_8")]
    pub fn alternate_on(&mut self) -> &mut Self {
        self.push(Variable::AlternateOn);
        self
    }

    /// `alternate_saved_x` - Saved cursor X in alternate screen
    #[cfg(feature = "tmux_1_8")]
    pub fn alternate_saved_x(&mut self) -> &mut Self {
        self.push(Variable::AlternateSavedX);
        self
    }

    /// `alternate_saved_y` - Saved cursor Y in alternate screen
    #[cfg(feature = "tmux_1_8")]
    pub fn alternate_saved_y(&mut self) -> &mut Self {
        self.push(Variable::AlternateSavedY);
        self
    }

    // Buffer

    /// `buffer_created` - Time buffer created
    #[cfg(feature = "tmux_2_6")]
    pub fn buffer_created(&mut self) -> &mut Self {
        self.push(Variable::BufferCreated);
        self
    }

    /// `buffer_name` - Name of buffer
    #[cfg(feature = "tmux_2_3")]
    pub fn buffer_name(&mut self) -> &mut Self {
        self.push(Variable::BufferName);
        self
    }

    /// `buffer_sample` - First 50 characters from the specified buffer
    #[cfg(feature = "tmux_1_7")]
    pub fn buffer_sample(&mut self) -> &mut Self {
        self.push(Variable::BufferSample);
        self
    }

    /// `buffer_size` - Size of the specified buffer in bytes
    #[cfg(feature = "tmux_1_7")]
    pub fn buffer_size(&mut self) -> &mut Self {
        self.push(Variable::BufferSize);
        self
    }

    // Client
    /// `client_activity` - Integer time client last had activity
    #[cfg(feature = "tmux_1_6")]
    pub fn client_activity(&mut self) -> &mut Self {
        self.push(Variable::ClientActivity);
        self
    }

    /// `client_cell_height` - Height of each client cell in pixels
    #[cfg(feature = "tmux_3_1")]
    pub fn client_cell_height(&mut self) -> &mut Self {
        self.push(Variable::ClientCellHeight);
        self
    }

    /// `client_cell_width` - Width of each client cell in pixels
    #[cfg(feature = "tmux_3_1")]
    pub fn client_cell_width(&mut self) -> &mut Self {
        self.push(Variable::ClientCellWidth);
        self
    }

    /// `client_activity_string` - Option<String> time client last had activity
    #[cfg(all(feature = "tmux_1_6", not(feature = "tmux_2_2")))]
    pub fn client_activity_string(&mut self) -> &mut Self {
        self.push(Variable::ClientActivityString);
        self
    }

    /// `client_created` - Integer time client created
    #[cfg(feature = "tmux_1_6")]
    pub fn client_created(&mut self) -> &mut Self {
        self.push(Variable::ClientCreated);
        self
    }

    /// `client_created_string` - Option<String> time client created
    #[cfg(all(feature = "tmux_1_6", not(feature = "tmux_2_2")))]
    pub fn client_created_string(&mut self) -> &mut Self {
        self.push(Variable::ClientCreatedString);
        self
    }

    /// `client_control_mode` - 1 if client is in control mode
    #[cfg(feature = "tmux_2_1")]
    pub fn client_control_mode(&mut self) -> &mut Self {
        self.push(Variable::ClientControlMode);
        self
    }

    /// `client_discarded` - Bytes discarded when client behind
    #[cfg(feature = "tmux_2_1")]
    pub fn client_discarded(&mut self) -> &mut Self {
        self.push(Variable::ClientDiscarded);
        self
    }

    /// `client_cwd` - Working directory of client
    #[cfg(all(feature = "tmux_1_6", not(feature = "tmux_1_9")))]
    pub fn client_cwd(&mut self) -> &mut Self {
        self.push(Variable::ClientCwd);
        self
    }

    /// `client_height` - Height of client
    #[cfg(feature = "tmux_1_6")]
    pub fn client_height(&mut self) -> &mut Self {
        self.push(Variable::ClientHeight);
        self
    }

    /// `client_key_table` - Current key table
    #[cfg(feature = "tmux_2_2")]
    pub fn client_key_table(&mut self) -> &mut Self {
        self.push(Variable::ClientKeyTable);
        self
    }

    /// `client_last_session` - Name of the client's last session
    #[cfg(feature = "tmux_1_8")]
    pub fn client_last_session(&mut self) -> &mut Self {
        self.push(Variable::ClientLastSession);
        self
    }

    /// `client_name` - Name of client
    #[cfg(feature = "tmux_2_4")]
    pub fn client_name(&mut self) -> &mut Self {
        self.push(Variable::ClientName);
        self
    }

    /// `client_pid` - PID of client process
    #[cfg(feature = "tmux_2_1")]
    pub fn client_pid(&mut self) -> &mut Self {
        self.push(Variable::ClientPid);
        self
    }

    /// `client_prefix` - 1 if prefix key has been pressed
    #[cfg(feature = "tmux_1_8")]
    pub fn client_prefix(&mut self) -> &mut Self {
        self.push(Variable::ClientPrefix);
        self
    }

    /// `client_readonly` - 1 if client is readonly
    #[cfg(feature = "tmux_1_6")]
    pub fn client_readonly(&mut self) -> &mut Self {
        self.push(Variable::ClientReadonly);
        self
    }

    /// `client_session` - Name of the client's session
    #[cfg(feature = "tmux_1_8")]
    pub fn client_session(&mut self) -> &mut Self {
        self.push(Variable::ClientSession);
        self
    }

    /// `client_termname` - Terminal name of client
    #[cfg(feature = "tmux_1_6")]
    pub fn client_termname(&mut self) -> &mut Self {
        self.push(Variable::ClientTermname);
        self
    }

    /// `client_termtype` - Terminal type of client
    #[cfg(all(feature = "tmux_2_4", not(feature = "tmux_3_1")))]
    pub fn client_termtype(&mut self) -> &mut Self {
        self.push(Variable::ClientTermtype);
        self
    }

    /// `client_tty` - Pseudo terminal of client
    #[cfg(feature = "tmux_1_6")]
    pub fn client_tty(&mut self) -> &mut Self {
        self.push(Variable::ClientTty);
        self
    }

    /// `client_utf8` - 1 if client supports UTF-8
    #[cfg(feature = "tmux_1_6")]
    pub fn client_utf8(&mut self) -> &mut Self {
        self.push(Variable::ClientUtf8);
        self
    }

    /// `client_width` - Width of client
    #[cfg(feature = "tmux_1_6")]
    pub fn client_width(&mut self) -> &mut Self {
        self.push(Variable::ClientWidth);
        self
    }

    /// `client_written` - Bytes written to client
    #[cfg(feature = "tmux_2_4")]
    pub fn client_written(&mut self) -> &mut Self {
        self.push(Variable::ClientWritten);
        self
    }

    // Command

    /// `command_hooked` - Name of command hooked, if any
    #[cfg(feature = "tmux_2_3")]
    pub fn command_hooked(&mut self) -> &mut Self {
        self.push(Variable::CommandHooked);
        self
    }

    /// `command_name` - Name of command in use, if any
    #[cfg(all(feature = "tmux_2_2", not(feature = "tmux_2_4")))]
    pub fn command_name(&mut self) -> &mut Self {
        self.push(Variable::CommandName);
        self
    }

    /// `command` - Name of command in use, if any
    #[cfg(feature = "tmux_2_4")]
    pub fn command(&mut self) -> &mut Self {
        self.push(Variable::Command);
        self
    }

    /// `command_list_name` - Command name if listing commands
    #[cfg(feature = "tmux_2_3")]
    pub fn command_list_name(&mut self) -> &mut Self {
        self.push(Variable::CommandListName);
        self
    }

    /// `command_list_alias` - Command alias if listing commands
    #[cfg(feature = "tmux_2_3")]
    pub fn command_list_alias(&mut self) -> &mut Self {
        self.push(Variable::CommandListAlias);
        self
    }

    /// `command_list_usage` - Command usage if listing commands
    #[cfg(feature = "tmux_2_3")]
    pub fn command_list_usage(&mut self) -> &mut Self {
        self.push(Variable::CommandListUsage);
        self
    }

    // Cursor

    /// `cursor_flag` - Pane cursor flag
    #[cfg(feature = "tmux_1_8")]
    pub fn cursor_flag(&mut self) -> &mut Self {
        self.push(Variable::CursorFlag);
        self
    }

    /// `cursor_character` - Character at cursor in pane
    #[cfg(feature = "tmux_2_9")]
    pub fn cursor_character(&mut self) -> &mut Self {
        self.push(Variable::CursorCharacter);
        self
    }

    /// `cursor_x` - Cursor X position in pane
    #[cfg(feature = "tmux_1_8")]
    pub fn cursor_x(&mut self) -> &mut Self {
        self.push(Variable::CursorX);
        self
    }

    /// `cursor_y` - Cursor Y position in pane
    #[cfg(feature = "tmux_1_8")]
    pub fn cursor_y(&mut self) -> &mut Self {
        self.push(Variable::CursorY);
        self
    }

    /// `copy_cursor_line` - Line the cursor is on in copy mode
    #[cfg(feature = "tmux_3_1")]
    pub fn copy_cursor_line(&mut self) -> &mut Self {
        self.push(Variable::CopyCursorLine);
        self
    }

    /// `copy_cursor_word` - Word under cursor in copy mode
    #[cfg(feature = "tmux_3_1")]
    pub fn copy_cursor_word(&mut self) -> &mut Self {
        self.push(Variable::CopyCursorWord);
        self
    }

    /// `copy_cursor_x` - Cursor X position in copy mode
    #[cfg(feature = "tmux_3_1")]
    pub fn copy_cursor_x(&mut self) -> &mut Self {
        self.push(Variable::CopyCursorX);
        self
    }

    /// `copy_cursor_y` - Cursor Y position in copy mode
    #[cfg(feature = "tmux_3_1")]
    pub fn copy_cursor_y(&mut self) -> &mut Self {
        self.push(Variable::CopyCursorY);
        self
    }

    /// `current_file` - Current configuration file
    #[cfg(feature = "tmux_3_2")]
    pub fn current_file(&mut self) -> &mut Self {
        self.push(Variable::CurrentFile);
        self
    }

    // history

    /// `history_bytes`             Number of bytes in window history
    #[cfg(feature = "tmux_1_7")]
    pub fn histoty_bytes(&mut self) -> &mut Self {
        self.push(Variable::HistotyBytes);
        self
    }

    /// `history_limit`             Maximum window history lines
    #[cfg(feature = "tmux_1_7")]
    pub fn history_limit(&mut self) -> &mut Self {
        self.push(Variable::HistotyLimit);
        self
    }

    /// `history_size`              Size of history in bytes
    #[cfg(feature = "tmux_1_7")]
    pub fn history_size(&mut self) -> &mut Self {
        self.push(Variable::HistorySize);
        self
    }

    // hook

    /// `hook` - Name of running hook, if any
    #[cfg(feature = "tmux_2_4")]
    pub fn hook(&mut self) -> &mut Self {
        self.push(Variable::Hook);
        self
    }

    /// `hook_pane` - ID of pane where hook was run, if any
    #[cfg(feature = "tmux_2_4")]
    pub fn hook_pane(&mut self) -> &mut Self {
        self.push(Variable::HookPane);
        self
    }

    /// `hook_session` - ID of session where hook was run, if any
    #[cfg(feature = "tmux_2_4")]
    pub fn hook_session(&mut self) -> &mut Self {
        self.push(Variable::HookSession);
        self
    }

    /// `hook_session_name` - Name of session where hook was run, if any
    #[cfg(feature = "tmux_2_4")]
    pub fn hook_session_name(&mut self) -> &mut Self {
        self.push(Variable::HookSessionName);
        self
    }

    /// `hook_window` - ID of window where hook was run, if any
    #[cfg(feature = "tmux_2_4")]
    pub fn hook_window(&mut self) -> &mut Self {
        self.push(Variable::HookWindow);
        self
    }

    /// `hook_window_name` - Name of window where hook was run, if any
    #[cfg(feature = "tmux_2_4")]
    pub fn hook_window_name(&mut self) -> &mut Self {
        self.push(Variable::HookWindowName);
        self
    }

    // host

    /// `host` - Hostname of local host
    #[cfg(feature = "tmux_1_6")]
    pub fn host(&mut self) -> &mut Self {
        self.push(Variable::Host);
        self
    }

    /// `host_short` - #h Hostname of local host (no domain name)
    #[cfg(feature = "tmux_1_9")]
    pub fn host_short(&mut self) -> &mut Self {
        self.push(Variable::HostShort);
        self
    }

    /// `insert_flag` - Pane insert flag
    #[cfg(feature = "tmux_1_8")]
    pub fn insert_flag(&mut self) -> &mut Self {
        self.push(Variable::InsertFlag);
        self
    }

    /// `keypad_cursor_flag` - Pane keypad cursor flag
    #[cfg(feature = "tmux_1_8")]
    pub fn keypad_cursor_flag(&mut self) -> &mut Self {
        self.push(Variable::KeypadCursorFlag);
        self
    }

    /// `keypad_flag` - Pane keypad flag
    #[cfg(feature = "tmux_1_8")]
    pub fn keypad_flag(&mut self) -> &mut Self {
        self.push(Variable::KeypadFlag);
        self
    }

    /// `line` - Line number in the list
    #[cfg(feature = "tmux_1_6")]
    pub fn line(&mut self) -> &mut Self {
        self.push(Variable::Line);
        self
    }

    // `mouse_all_flag` - Pane mouse all flag
    //#[cfg(feature = "tmux_3_0")]
    //pub fn mouse_all_flag(&mut self) -> &mut Self {
    //self.push(Variable::MouseAllFlag);
    //self
    //}

    /// `mouse_any_flag` - Pane mouse any flag
    #[cfg(feature = "tmux_1_8")]
    pub fn mouse_any_flag(&mut self) -> &mut Self {
        self.push(Variable::MouseAnyFlag);
        self
    }

    /// `mouse_button_flag` - Pane mouse button flag
    #[cfg(feature = "tmux_1_8")]
    pub fn mouse_button_flag(&mut self) -> &mut Self {
        self.push(Variable::MouseButtonFlag);
        self
    }

    /// `mouse_line` - Line under mouse, if any
    #[cfg(feature = "tmux_3_0")]
    pub fn mouse_line(&mut self) -> &mut Self {
        self.push(Variable::MouseLine);
        self
    }

    /// `sgr_flag` - Pane mouse SGR flag
    #[cfg(feature = "tmux_3_0")]
    pub fn sgr_line(&mut self) -> &mut Self {
        self.push(Variable::MouseSgrFlag);
        self
    }

    /// `mouse_standard_flag` - Pane mouse standard flag
    #[cfg(feature = "tmux_1_8")]
    pub fn mouse_standard_flag(&mut self) -> &mut Self {
        self.push(Variable::MouseStandardFlag);
        self
    }

    /// `mouse_status_line` - Status line on which mouse event took place
    #[cfg(feature = "tmux_3_4")]
    pub fn mouse_status_line(&mut self) -> &mut Self {
        self.push(Variable::MouseStatusLine);
        self
    }

    /// `mouse_status_range` - Range type or argument of mouse event on status line
    #[cfg(feature = "tmux_3_4")]
    pub fn mouse_status_range(&mut self) -> &mut Self {
        self.push(Variable::MouseStatusRange);
        self
    }

    /// `mouse_utf8_flag` - Pane mouse UTF-8 flag
    #[cfg(all(feature = "tmux_1_8", not(feature = "tmux_2_2"), feature = "tmux_3_0"))]
    pub fn mouse_utf8_flag(&mut self) -> &mut Self {
        self.push(Variable::MouseUtf8Flag);
        self
    }

    /// `mouse_all_flag` - Pane mouse all flag
    #[cfg(feature = "tmux_2_4")]
    pub fn mouse_all_flag(&mut self) -> &mut Self {
        self.push(Variable::MouseAllFlag);
        self
    }

    /// `mouse_word` - Word under mouse, if any
    #[cfg(feature = "tmux_3_0")]
    pub fn mouse_word(&mut self) -> &mut Self {
        self.push(Variable::MouseWord);
        self
    }

    /// `mouse_x` - Mouse X position, if any
    #[cfg(feature = "tmux_3_0")]
    pub fn mouse_x(&mut self) -> &mut Self {
        self.push(Variable::MouseX);
        self
    }

    /// `mouse_y` - Mouse Y position, if any
    #[cfg(feature = "tmux_3_0")]
    pub fn mouse_y(&mut self) -> &mut Self {
        self.push(Variable::MouseY);
        self
    }

    /// `origin_flag` - Pane origin flag
    #[cfg(feature = "tmux_3_0")]
    pub fn origin_flag(&mut self) -> &mut Self {
        self.push(Variable::OriginFlag);
        self
    }

    // pane

    /// `pane_active` - 1 if active pane
    #[cfg(feature = "tmux_1_6")]
    pub fn pane_active(&mut self) -> &mut Self {
        self.push(Variable::PaneActive);
        self
    }

    /// `pane_at_bottom` - 1 if pane is at the bottom of window
    #[cfg(feature = "tmux_2_6")]
    pub fn pane_at_bottom(&mut self) -> &mut Self {
        self.push(Variable::PaneAtBottom);
        self
    }

    /// `pane_at_left` - 1 if pane is at the left of window
    #[cfg(feature = "tmux_2_6")]
    pub fn pane_at_left(&mut self) -> &mut Self {
        self.push(Variable::PaneAtLeft);
        self
    }

    /// `pane_at_right` - 1 if pane is at the right of window
    #[cfg(feature = "tmux_2_6")]
    pub fn pane_at_right(&mut self) -> &mut Self {
        self.push(Variable::PaneAtRight);
        self
    }

    /// `pane_at_top` - 1 if pane is at the top of window
    #[cfg(feature = "tmux_2_6")]
    pub fn pane_at_top(&mut self) -> &mut Self {
        self.push(Variable::PaneAtTop);
        self
    }

    /// `pane_bottom` - Bottom of pane
    #[cfg(feature = "tmux_2_0")]
    pub fn pane_bottom(&mut self) -> &mut Self {
        self.push(Variable::PaneBottom);
        self
    }

    /// `pane_current_command` - Current command if available
    #[cfg(feature = "tmux_1_8")]
    pub fn pane_current_command(&mut self) -> &mut Self {
        self.push(Variable::PaneCurrentCommand);
        self
    }

    /// `pane_current_path` - Current path if available
    #[cfg(feature = "tmux_1_7")]
    pub fn pane_current_path(&mut self) -> &mut Self {
        self.push(Variable::PaneCurrentPath);
        self
    }

    /// `pane_dead` - 1 if pane is dead
    #[cfg(feature = "tmux_1_6")]
    pub fn pane_dead(&mut self) -> &mut Self {
        self.push(Variable::PaneDead);
        self
    }

    /// `pane_dead_status` - Exit status of process in dead pane
    #[cfg(feature = "tmux_2_0")]
    pub fn pane_dead_status(&mut self) -> &mut Self {
        self.push(Variable::PaneDeadStatus);
        self
    }

    /// `pane_format` - 1 if format is for a pane
    #[cfg(feature = "tmux_2_6")]
    pub fn pane_format(&mut self) -> &mut Self {
        self.push(Variable::PaneFormat);
        self
    }

    /// `pane_height` - Height of pane
    #[cfg(feature = "tmux_1_6")]
    pub fn pane_height(&mut self) -> &mut Self {
        self.push(Variable::PaneHeight);
        self
    }

    /// `pane_id` - #D Unique pane ID
    #[cfg(feature = "tmux_1_6")]
    pub fn pane_id(&mut self) -> &mut Self {
        self.push(Variable::PaneId);
        self
    }

    /// `pane_in_mode` - 1 if pane is in a mode
    #[cfg(feature = "tmux_1_8")]
    pub fn pane_in_mode(&mut self) -> &mut Self {
        self.push(Variable::PaneInMode);
        self
    }

    /// `pane_index` - #P Index of pane
    #[cfg(feature = "tmux_1_7")]
    pub fn pane_index(&mut self) -> &mut Self {
        self.push(Variable::PaneIndex);
        self
    }

    /// `pane_input_off` - 1 if input to pane is disabled
    #[cfg(feature = "tmux_2_0")]
    pub fn pane_input_off(&mut self) -> &mut Self {
        self.push(Variable::PaneInputOff);
        self
    }

    /// `pane_left` - Left of pane
    #[cfg(feature = "tmux_2_0")]
    pub fn pane_left(&mut self) -> &mut Self {
        self.push(Variable::PaneLeft);
        self
    }

    /// `pane_marked` - 1 if this is the marked pane
    #[cfg(feature = "tmux_3_0")]
    pub fn pane_marked(&mut self) -> &mut Self {
        self.push(Variable::PaneMarked);
        self
    }

    /// `pane_marked_set` - 1 if a marked pane is set
    #[cfg(feature = "tmux_3_0")]
    pub fn pane_marked_set(&mut self) -> &mut Self {
        self.push(Variable::PaneMarkedSet);
        self
    }

    /// `pane_mode` - Name of pane mode, if any
    #[cfg(feature = "tmux_2_5")]
    pub fn pane_mode(&mut self) -> &mut Self {
        self.push(Variable::PaneMode);
        self
    }

    /// `pane_path` - #T Path of pane (can be set by application)
    #[cfg(feature = "tmux_3_1")]
    pub fn pane_path(&mut self) -> &mut Self {
        self.push(Variable::PanePath);
        self
    }

    /// `pane_pid` - PID of first process in pane
    #[cfg(feature = "tmux_1_6")]
    pub fn pane_pid(&mut self) -> &mut Self {
        self.push(Variable::PanePid);
        self
    }

    /// `pane_pipe` - 1 if pane is being piped
    #[cfg(feature = "tmux_2_6")]
    pub fn pane_pipe(&mut self) -> &mut Self {
        self.push(Variable::PanePipe);
        self
    }

    /// `pane_right` - Right of pane
    #[cfg(feature = "tmux_2_0")]
    pub fn pane_right(&mut self) -> &mut Self {
        self.push(Variable::PaneRight);
        self
    }

    /// `pane_search_string` - Last search `Option<String>` in copy mode
    #[cfg(feature = "tmux_2_5")]
    pub fn pane_search_string(&mut self) -> &mut Self {
        self.push(Variable::PaneSearchString);
        self
    }

    /// `pane_start_command` - Command pane started with
    #[cfg(feature = "tmux_1_6")]
    pub fn pane_start_command(&mut self) -> &mut Self {
        self.push(Variable::PaneStartCommand);
        self
    }

    /// `pane_start_path` - Path pane started with
    #[cfg(all(feature = "tmux_1_6", not(feature = "tmux_2_0")))]
    pub fn pane_start_path(&mut self) -> &mut Self {
        self.push(Variable::PaneStartPath);
        self
    }

    /// `pane_synchronized` - 1 if pane is synchronized
    #[cfg(feature = "tmux_1_9")]
    pub fn pane_synchronized(&mut self) -> &mut Self {
        self.push(Variable::PaneSynchronized);
        self
    }

    /// `pane_tabs` - Pane tab positions
    #[cfg(feature = "tmux_1_8")]
    pub fn pane_tabs(&mut self) -> &mut Self {
        self.push(Variable::PaneTabs);
        self
    }

    /// `pane_title` - #T Title of pane (can be set by application)
    #[cfg(feature = "tmux_1_6")]
    pub fn pane_title(&mut self) -> &mut Self {
        self.push(Variable::PaneTitle);
        self
    }

    /// `pane_top` - Top of pane
    #[cfg(feature = "tmux_2_0")]
    pub fn pane_top(&mut self) -> &mut Self {
        self.push(Variable::PaneTop);
        self
    }

    /// `pane_tty` - Pseudo terminal of pane
    #[cfg(feature = "tmux_1_6")]
    pub fn pane_tty(&mut self) -> &mut Self {
        self.push(Variable::PaneTty);
        self
    }

    /// `pane_unseen_changes` - 1 if there were changes in pane while in mode
    #[cfg(feature = "tmux_3_4")]
    pub fn pane_unseen_changes(&mut self) -> &mut Self {
        self.push(Variable::PaneUnseenChanges);
        self
    }

    /// `pane_width` - Width of pane
    #[cfg(feature = "tmux_1_6")]
    pub fn pane_width(&mut self) -> &mut Self {
        self.push(Variable::PaneWidth);
        self
    }

    /// `saved_cursor_x` - Saved cursor X in pane
    #[cfg(any(feature = "tmux_1_8", not(feature = "tmux_2_1")))]
    pub fn saved_cursor_x(&mut self) -> &mut Self {
        self.push(Variable::SavedCursorX);
        self
    }

    /// `saved_cursor_y` - Saved cursor Y in pane
    #[cfg(any(feature = "tmux_1_8", not(feature = "tmux_2_1")))]
    pub fn saved_cursor_y(&mut self) -> &mut Self {
        self.push(Variable::SavedCursorY);
        self
    }

    /// `pid` - Server PID
    #[cfg(feature = "tmux_2_1")]
    pub fn pid(&mut self) -> &mut Self {
        self.push(Variable::Pid);
        self
    }

    /// `rectangle_toggle` - 1 if rectangle selection is activated
    #[cfg(feature = "tmux_2_7")]
    pub fn rectangle_toggle(&mut self) -> &mut Self {
        self.push(Variable::RectangleToggle);
        self
    }

    /// `scroll_position` - Scroll position in copy mode
    #[cfg(feature = "tmux_2_2")]
    pub fn scroll_position(&mut self) -> &mut Self {
        self.push(Variable::ScrollPosition);
        self
    }

    /// `scroll_region_lower` - Bottom of scroll region in pane
    #[cfg(feature = "tmux_1_8")]
    pub fn scroll_region_lower(&mut self) -> &mut Self {
        self.push(Variable::ScrollRegionLower);
        self
    }

    /// `scroll_region_upper` - Top of scroll region in pane
    #[cfg(feature = "tmux_1_8")]
    pub fn scroll_region_upper(&mut self) -> &mut Self {
        self.push(Variable::ScrollRegionUpper);
        self
    }

    /// `selection_active` - 1 if selection started and changes with the curso
    #[cfg(feature = "tmux_3_1")]
    pub fn selection_active(&mut self) -> &mut Self {
        self.push(Variable::SelectionActive);
        self
    }

    /// `selection_end_x` - X position of the end of the selection
    #[cfg(feature = "tmux_3_1")]
    pub fn selection_end_x(&mut self) -> &mut Self {
        self.push(Variable::SelectionEndX);
        self
    }

    /// `selection_end_y` - Y position of the end of the selection
    #[cfg(feature = "tmux_3_1")]
    pub fn selection_end_y(&mut self) -> &mut Self {
        self.push(Variable::SelectionEndY);
        self
    }

    /// `selection_present` - 1 if selection started in copy mode
    #[cfg(feature = "tmux_2_6")]
    pub fn selection_present(&mut self) -> &mut Self {
        self.push(Variable::SelectionPresent);
        self
    }

    /// `selection_start_x` - X position of the start of the selection
    #[cfg(feature = "tmux_3_1")]
    pub fn selection_start_x(&mut self) -> &mut Self {
        self.push(Variable::SelectionStartX);
        self
    }

    /// `selection_start_y` - Y position of the start of the selection
    #[cfg(feature = "tmux_3_1")]
    pub fn selection_start_y(&mut self) -> &mut Self {
        self.push(Variable::SelectionStartY);
        self
    }

    // Session
    /// `session_activity` - Time of session last activity
    #[cfg(feature = "tmux_2_1")]
    pub fn session_activity(&mut self) -> &mut Self {
        self.push(Variable::SessionActivity);
        self
    }

    /// `session_activity_string` - Option<String> time of session last activity
    #[cfg(all(feature = "tmux_2_1", not(feature = "tmux_2_2")))]
    pub fn session_activity_string(&mut self) -> &mut Self {
        self.push(Variable::SessionActivityString);
        self
    }

    /// `session_alerts` - List of window indexes with alerts
    #[cfg(feature = "tmux_2_1")]
    pub fn session_alerts(&mut self) -> &mut Self {
        self.push(Variable::SessionAlerts);
        self
    }

    /// `session_attached` - Number of clients session is attached to
    #[cfg(feature = "tmux_1_6")]
    pub fn session_attached(&mut self) -> &mut Self {
        self.push(Variable::SessionAttached);
        self
    }

    /// `session_attached_list` - List of clients session is attached to
    #[cfg(feature = "tmux_3_1")]
    pub fn session_attached_list(&mut self) -> &mut Self {
        self.push(Variable::SessionAttachedList);
        self
    }

    /// `session_created` - Time session created
    #[cfg(feature = "tmux_1_6")]
    pub fn session_created(&mut self) -> &mut Self {
        self.push(Variable::SessionCreated);
        self
    }

    /// `session_created_string` - Option<String> time session created
    #[cfg(all(feature = "tmux_1_6", not(feature = "tmux_2_2")))]
    pub fn session_created_string(&mut self) -> &mut Self {
        self.push(Variable::SessionCreatedString);
        self
    }

    /// `session_format` - 1 if format is for a session (not assuming the current)
    #[cfg(feature = "tmux_2_6")]
    pub fn session_format(&mut self) -> &mut Self {
        self.push(Variable::SessionFormat);
        self
    }

    /// `session_group` - Name of session group
    #[cfg(feature = "tmux_1_6")]
    pub fn session_group(&mut self) -> &mut Self {
        self.push(Variable::SessionGroup);
        self
    }

    /// `session_group_attached` - Number of clients sessions in group are attached >
    #[cfg(feature = "tmux_3_1")]
    pub fn session_group_attached(&mut self) -> &mut Self {
        self.push(Variable::SessionGroupAttached);
        self
    }

    /// `session_group_attached_list` - List of clients sessions in group are attached to
    #[cfg(feature = "tmux_3_1")]
    pub fn session_group_attached_list(&mut self) -> &mut Self {
        self.push(Variable::SessionGroupAttachedList);
        self
    }

    /// `session_group_list` - List of sessions in group
    #[cfg(feature = "tmux_2_7")]
    pub fn session_group_list(&mut self) -> &mut Self {
        self.push(Variable::SessionGroupList);
        self
    }

    /// `session_group_many_attached` - 1 if multiple clients attached to sessions in gro
    #[cfg(feature = "tmux_3_1")]
    pub fn session_group_many_attached(&mut self) -> &mut Self {
        self.push(Variable::SessionGroupManyAttached);
        self
    }

    /// `session_group_size` - Size of session group
    #[cfg(feature = "tmux_2_7")]
    pub fn session_group_size(&mut self) -> &mut Self {
        self.push(Variable::SessionGroupSize);
        self
    }

    /// `session_grouped` - 1 if session in a group
    #[cfg(feature = "tmux_1_6")]
    pub fn session_grouped(&mut self) -> &mut Self {
        self.push(Variable::SessionGrouped);
        self
    }

    /// `session_height` - Height of session
    #[cfg(all(feature = "tmux_1_6", not(feature = "tmux_2_9")))]
    pub fn session_height(&mut self) -> &mut Self {
        self.push(Variable::SessionHeight);
        self
    }

    /// `session_width` - Width of session
    #[cfg(all(feature = "tmux_1_6", not(feature = "tmux_2_9")))]
    pub fn session_width(&mut self) -> &mut Self {
        self.push(Variable::SessionWidth);
        self
    }

    /// `session_id` - Unique session ID
    #[cfg(feature = "tmux_1_8")]
    pub fn session_id(&mut self) -> &mut Self {
        self.push(Variable::SessionId);
        self
    }

    /// `session_last_attached` - Time session last attached
    #[cfg(feature = "tmux_2_1")]
    pub fn session_last_attached(&mut self) -> &mut Self {
        self.push(Variable::SessionLastAttached);
        self
    }

    /// `session_last_attached_string` - Option<String> time session last attached
    #[cfg(all(feature = "tmux_2_1", not(feature = "tmux_2_2")))]
    pub fn session_last_attached_string(&mut self) -> &mut Self {
        self.push(Variable::SessionLastAttachedString);
        self
    }

    /// `session_many_attached` - 1 if multiple clients attached
    #[cfg(feature = "tmux_2_0")]
    pub fn session_many_attached(&mut self) -> &mut Self {
        self.push(Variable::SessionManyAttached);
        self
    }

    /// `session_name` - #S Name of session
    #[cfg(feature = "tmux_1_6")]
    pub fn session_name(&mut self) -> &mut Self {
        self.push(Variable::SessionName);
        self
    }

    /// `session_stack` - Window indexes in most recent order
    #[cfg(feature = "tmux_2_5")]
    pub fn session_stack(&mut self) -> &mut Self {
        self.push(Variable::SessionStack);
        self
    }

    /// `session_windows` - Number of windows in session
    #[cfg(feature = "tmux_1_6")]
    pub fn session_windows(&mut self) -> &mut Self {
        self.push(Variable::SessionWindows);
        self
    }

    /// `socket_path` - Server socket path
    #[cfg(feature = "tmux_2_2")]
    pub fn socket_path(&mut self) -> &mut Self {
        self.push(Variable::SocketPath);
        self
    }

    /// `start_time` - Server start time
    #[cfg(feature = "tmux_2_2")]
    pub fn start_time(&mut self) -> &mut Self {
        self.push(Variable::StartTime);
        self
    }

    /// `version` - Server version
    #[cfg(feature = "tmux_2_4")]
    pub fn version(&mut self) -> &mut Self {
        self.push(Variable::Version);
        self
    }

    // Window
    //
    /// `window_active` - 1 if window active
    #[cfg(feature = "tmux_1_6")]
    pub fn window_active(&mut self) -> &mut Self {
        self.push(Variable::WindowActive);
        self
    }

    /// `window_active_clients` - Number of clients viewing this window
    #[cfg(feature = "tmux_3_1")]
    pub fn window_active_clients(&mut self) -> &mut Self {
        self.push(Variable::WindowActiveClients);
        self
    }

    /// `window_active_clients_list` - List of clients viewing this window
    #[cfg(feature = "tmux_3_1")]
    pub fn window_active_clients_list(&mut self) -> &mut Self {
        self.push(Variable::WindowActiveClientsList);
        self
    }

    /// `window_active_sessions` - Number of sessions on which this window is active
    #[cfg(feature = "tmux_3_1")]
    pub fn window_active_sessions(&mut self) -> &mut Self {
        self.push(Variable::WindowActiveSessions);
        self
    }

    /// `window_active_sessions_list` - List of sessions on which this window is active
    #[cfg(feature = "tmux_3_1")]
    pub fn window_active_sessions_list(&mut self) -> &mut Self {
        self.push(Variable::WindowActiveSessionsList);
        self
    }

    /// `window_activity` - Time of window last activity
    #[cfg(feature = "tmux_2_1")]
    pub fn window_activity(&mut self) -> &mut Self {
        self.push(Variable::WindowActivity);
        self
    }

    /// `window_activity_string` - String time of window last activity
    #[cfg(all(feature = "tmux_2_1", not(feature = "tmux_2_2")))]
    pub fn window_activity_string(&mut self) -> &mut Self {
        self.push(Variable::SessionActivityString);
        self
    }

    /// `window_activity_flag` - 1 if window has activity
    #[cfg(any(
        all(feature = "tmux_1_9", not(feature = "tmux_2_2")),
        feature = "tmux_2_3"
    ))]
    pub fn window_activity_flag(&mut self) -> &mut Self {
        self.push(Variable::WindowActivityFlag);
        self
    }

    /// `window_bell_flag` - 1 if window has bell
    #[cfg(feature = "tmux_1_9")]
    pub fn window_bell_flag(&mut self) -> &mut Self {
        self.push(Variable::WindowBellFlag);
        self
    }

    /// `window_content_flag` - 1 if window has content alert
    #[cfg(all(feature = "tmux_1_9", not(feature = "tmux_2_0")))]
    pub fn window_content_flag(&mut self) -> &mut Self {
        self.push(Variable::WindowContentFlag);
        self
    }

    /// `window_bigger` - 1 if window is larger than client
    #[cfg(feature = "tmux_2_9")]
    pub fn window_bigger(&mut self) -> &mut Self {
        self.push(Variable::WindowBigger);
        self
    }

    /// `window_cell_height` - Height of each cell in pixels
    #[cfg(feature = "tmux_3_1")]
    pub fn window_cell_height(&mut self) -> &mut Self {
        self.push(Variable::WindowCellHeight);
        self
    }

    /// `window_cell_width` - Width of each cell in pixels
    #[cfg(feature = "tmux_3_1")]
    pub fn window_cell_width(&mut self) -> &mut Self {
        self.push(Variable::WindowCellWidth);
        self
    }

    /// `window_end_flag` - 1 if window has the highest index
    #[cfg(feature = "tmux_2_9")]
    pub fn window_end_flag(&mut self) -> &mut Self {
        self.push(Variable::WindowEndFlag);
        self
    }

    /// `window_find_matches` - Matched data from the find-window command if available
    #[cfg(all(feature = "tmux_1_7", not(feature = "tmux_2_6")))]
    pub fn window_find_matches(&mut self) -> &mut Self {
        self.push(Variable::WindowFindMatches);
        self
    }

    /// `window_flags` - #F Window flags
    #[cfg(feature = "tmux_1_6")]
    pub fn window_flags(&mut self) -> &mut Self {
        self.push(Variable::WindowFlags);
        self
    }

    // TODO: WindowRawFlags
    /// `window_raw_flags` - Window flags with nothing escaped
    #[cfg(feature = "tmux_3_2")]
    pub fn window_raw_flags(&mut self) -> &mut Self {
        self.push(Variable::WindowRawFlags);
        self
    }

    /// `window_format` - 1 if format is for a window
    #[cfg(feature = "tmux_2_6")]
    pub fn window_format(&mut self) -> &mut Self {
        self.push(Variable::WindowFormat);
        self
    }

    /// `window_height` - Height of window
    #[cfg(feature = "tmux_1_6")]
    pub fn window_height(&mut self) -> &mut Self {
        self.push(Variable::WindowHeight);
        self
    }

    /// `window_id` - Unique window ID
    #[cfg(feature = "tmux_1_7")]
    pub fn window_id(&mut self) -> &mut Self {
        self.push(Variable::WindowId);
        self
    }

    /// `window_index` - #I Index of window
    #[cfg(feature = "tmux_1_6")]
    pub fn window_index(&mut self) -> &mut Self {
        self.push(Variable::WindowIndex);
        self
    }

    /// `window_last_flag` - 1 if window is the last used
    #[cfg(feature = "tmux_2_0")]
    pub fn window_last_flag(&mut self) -> &mut Self {
        self.push(Variable::WindowLastFlag);
        self
    }

    /// `window_layout` - Window layout description, ignoring zoomed window panes
    #[cfg(feature = "tmux_1_6")]
    pub fn window_layout(&mut self) -> &mut Self {
        self.push(Variable::WindowLayout);
        self
    }

    /// `window_linked` - 1 if window is linked across sessions
    #[cfg(feature = "tmux_2_1")]
    pub fn window_linked(&mut self) -> &mut Self {
        self.push(Variable::WindowLinked);
        self
    }

    /// `window_linked_sessions` - Number of sessions this window is linked to
    #[cfg(feature = "tmux_3_1")]
    pub fn window_linked_sessions(&mut self) -> &mut Self {
        self.push(Variable::WindowLinkedSessions);
        self
    }

    /// `window_linked_sessions_list` - List of sessions this window is linked to
    #[cfg(feature = "tmux_3_1")]
    pub fn window_linked_sessions_list(&mut self) -> &mut Self {
        self.push(Variable::WindowLinkedSessionsList);
        self
    }

    /// `window_marked_flag` - 1 if window contains the marked pane
    #[cfg(feature = "tmux_3_1")]
    pub fn window_marked_flag(&mut self) -> &mut Self {
        self.push(Variable::WindowMarkedFlag);
        self
    }

    /// `window_name` - #W Name of window
    #[cfg(feature = "tmux_1_6")]
    pub fn window_name(&mut self) -> &mut Self {
        self.push(Variable::WindowName);
        self
    }

    /// `window_offset_x` - X offset into window if larger than client
    #[cfg(feature = "tmux_2_9")]
    pub fn window_offset_x(&mut self) -> &mut Self {
        self.push(Variable::WindowOffsetX);
        self
    }

    /// `window_offset_y` - Y offset into window if larger than client
    #[cfg(feature = "tmux_2_9")]
    pub fn window_offset_y(&mut self) -> &mut Self {
        self.push(Variable::WindowOffsetY);
        self
    }

    /// `window_panes` - Number of panes in window
    #[cfg(feature = "tmux_1_7")]
    pub fn window_panes(&mut self) -> &mut Self {
        self.push(Variable::WindowPanes);
        self
    }

    /// `window_silence_flag` - 1 if window has silence alert
    #[cfg(feature = "tmux_1_9")]
    pub fn window_silence_flag(&mut self) -> &mut Self {
        self.push(Variable::WindowSilenceFlag);
        self
    }

    /// `window_stack_index` - Index in session most recent stack
    #[cfg(feature = "tmux_2_5")]
    pub fn window_stack_index(&mut self) -> &mut Self {
        self.push(Variable::WindowStackIndex);
        self
    }

    /// `window_start_flag` - 1 if window has the lowest index
    #[cfg(feature = "tmux_2_9")]
    pub fn window_start_flag(&mut self) -> &mut Self {
        self.push(Variable::WindowStartFlag);
        self
    }

    /// `window_visible_layout` - Window layout description, respecting zoomed window panes
    #[cfg(feature = "tmux_2_2")]
    pub fn window_visible_layout(&mut self) -> &mut Self {
        self.push(Variable::WindowVisibleLayout);
        self
    }

    /// `window_width` - Width of window
    #[cfg(feature = "tmux_1_6")]
    pub fn window_width(&mut self) -> &mut Self {
        self.push(Variable::WindowWidth);
        self
    }

    /// `window_zoomed_flag` - 1 if window is zoomed
    #[cfg(feature = "tmux_2_0")]
    pub fn window_zoomed_flag(&mut self) -> &mut Self {
        self.push(Variable::WindowZoomedFlag);
        self
    }

    /// `wrap_flag` - Pane wrap flag
    #[cfg(feature = "tmux_1_8")]
    pub fn wrap_flag(&mut self) -> &mut Self {
        self.push(Variable::WrapFlag);
        self
    }
}