# cmd_new_window_entry

- **Language:** C
- **Kind:** attribute
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-new-window.c#L37
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-variable-cmd_new_window_entry/

tmux command: [`new-window`](/en/tmux/latest/manual/new-window/)

```c
const struct cmd_entry cmd_new_window_entry = {
    .name = "new-window",
    .alias = "neww",

    .args = { "abc:de:F:kn:PSt:", 0, -1, NULL },
    .usage = "[-abdkPS] [-c start-directory] [-e environment] [-F format] "
         "[-n window-name] " "[-t target-window]" 
         " [shell-command [argument ...]]",

    .target = { 't', CMD_FIND_WINDOW, 0x4 },

    .flags = 0,
    .exec = cmd_new_window_exec
};
```

## Other function references

- [`cmd_new_window_exec`](/en/tmux/latest/reference/c-function-cmd-new-window-c-cmd_new_window_exec/) (function)

## Referenced declarations

- [`args`](/en/tmux/latest/reference/c-struct-args/) (struct)
- [`cmd_entry`](/en/tmux/latest/reference/c-struct-cmd_entry/) (struct)
- [`CMD_FIND_WINDOW`](/en/tmux/latest/reference/c-enum-cmd_find_type-cmd_find_window/) (constant)
- [`window`](/en/tmux/latest/reference/c-struct-window/) (struct)
