diff options
author | James Booth <boothj5@gmail.com> | 2016-09-23 00:56:53 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-09-23 00:56:53 +0100 |
commit | d3cc5bd7ed9563dfc673b72ac3347cf41fc3d057 (patch) | |
tree | 6f7c72dda85e179b7cf1be3278e64f7a8d900674 /src/command/cmd_defs.c | |
parent | 3983ee1d6be8245901e83d7d06974005000a1721 (diff) | |
download | profani-tty-d3cc5bd7ed9563dfc673b72ac3347cf41fc3d057.tar.gz |
Allow vertical positioning of all windows
Diffstat (limited to 'src/command/cmd_defs.c')
-rw-r--r-- | src/command/cmd_defs.c | 63 |
1 files changed, 57 insertions, 6 deletions
diff --git a/src/command/cmd_defs.c b/src/command/cmd_defs.c index 52c06ae5..c8732b34 100644 --- a/src/command/cmd_defs.c +++ b/src/command/cmd_defs.c @@ -1302,20 +1302,71 @@ static struct cmd_t command_defs[] = CMD_NOEXAMPLES }, + { "/titlebar", + parse_args, 1, 1, &cons_winpos_setting, + CMD_NOSUBFUNCS + CMD_MAINFUNC(cmd_titlebar) + CMD_TAGS( + CMD_TAG_UI) + CMD_SYN( + "/titlebar up", + "/titlebar down") + CMD_DESC( + "Move the title bar.") + CMD_ARGS( + { "up", "Move the title bar up the screen." }, + { "down", "Move the title bar down the screen." }) + CMD_NOEXAMPLES + }, + + { "/mainwin", + parse_args, 1, 1, &cons_winpos_setting, + CMD_NOSUBFUNCS + CMD_MAINFUNC(cmd_mainwin) + CMD_TAGS( + CMD_TAG_UI) + CMD_SYN( + "/mainwin up", + "/mainwin down") + CMD_DESC( + "Move the main window.") + CMD_ARGS( + { "up", "Move the main window up the screen." }, + { "down", "Move the main window down the screen." }) + CMD_NOEXAMPLES + }, + + { "/statusbar", + parse_args, 1, 1, &cons_winpos_setting, + CMD_NOSUBFUNCS + CMD_MAINFUNC(cmd_statusbar) + CMD_TAGS( + CMD_TAG_UI) + CMD_SYN( + "/statusbar up", + "/statusbar down") + CMD_DESC( + "Move the status bar.") + CMD_ARGS( + { "up", "Move the status bar up the screen." }, + { "down", "Move the status bar down the screen." }) + CMD_NOEXAMPLES + }, + { "/inputwin", - parse_args, 1, 1, &cons_inputwin_setting, + parse_args, 1, 1, &cons_winpos_setting, CMD_NOSUBFUNCS CMD_MAINFUNC(cmd_inputwin) CMD_TAGS( CMD_TAG_UI) CMD_SYN( - "/inputwin top", - "/inputwin bottom") + "/inputwin up", + "/inputwin down") CMD_DESC( - "Where to display the input window.") + "Move the input window.") CMD_ARGS( - { "top", "Show the input window at the top of the screen." }, - { "bottom", "Show the input window at the bottom of the screen." }) + { "up", "Move the input window up the screen." }, + { "down", "Move the input window down the screen." }) CMD_NOEXAMPLES }, |