From cb03746137bc23f3c1b485088fefb9d4feffa368 Mon Sep 17 00:00:00 2001 From: Karl Schultheisz Date: Thu, 23 May 2019 10:48:36 -0400 Subject: Add layout option This introduces a new `set` option for setting the layout to vertical or horizontal, which previously could not be done without creating a new window (via `split` or `vsplit`). Now, `set layout|lay h|v` will control this without creating a new window. --- sam.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sam.c') diff --git a/sam.c b/sam.c index 3b7aaf3..0abd9e2 100644 --- a/sam.c +++ b/sam.c @@ -297,6 +297,7 @@ enum { OPTION_SAVE_METHOD, OPTION_LOAD_METHOD, OPTION_CHANGE_256COLORS, + OPTION_LAYOUT, }; static const OptionDef options[] = { @@ -380,6 +381,11 @@ static const OptionDef options[] = { VIS_OPTION_TYPE_BOOL, VIS_HELP("Change 256 color palette to support 24bit colors") }, + [OPTION_LAYOUT] = { + { "layout", "lay" }, + VIS_OPTION_TYPE_STRING, + VIS_HELP("Vertical or horizontal window layout") + }, }; bool sam_init(Vis *vis) { -- cgit v1.2.3