From dcf55f560cb5998a26a2c492e02c7d5986a59ea1 Mon Sep 17 00:00:00 2001 From: John Howard Date: Wed, 14 Sep 2016 13:12:21 -0700 Subject: [PATCH] Windows: Add initialConsoleSize to process Signed-off-by: John Howard --- config.md | 3 +++ specs-go/config.go | 2 ++ 2 files changed, 5 insertions(+) diff --git a/config.md b/config.md index 0a21d654d..476e73701 100644 --- a/config.md +++ b/config.md @@ -95,6 +95,7 @@ See links for details about [mountvol](http://ss64.com/nt/mountvol.html) and [Se **`process`** (object, required) configures the container process. * **`terminal`** (bool, optional) specifies whether you want a terminal attached to that process, defaults to false. +* **`initialConsoleSize`** (array of uints, optional) specifies the initial console size (height, width) of the terminal if attached. * **`cwd`** (string, required) is the working directory that will be set for the executable. This value MUST be an absolute path. * **`env`** (array of strings, optional) contains a list of variables that will be set in the process's environment prior to execution. @@ -139,6 +140,7 @@ _Note: For Solaris, uid and gid specify the uid and gid of the process inside th ```json "process": { "terminal": true, + "initialConsoleSize": [25, 80], "user": { "uid": 1, "gid": 1, @@ -174,6 +176,7 @@ _Note: For Solaris, uid and gid specify the uid and gid of the process inside th ```json "process": { "terminal": true, + "initialConsoleSize": [25, 80], "user": { "uid": 1, "gid": 1, diff --git a/specs-go/config.go b/specs-go/config.go index de42035f8..42fccdb93 100644 --- a/specs-go/config.go +++ b/specs-go/config.go @@ -31,6 +31,8 @@ type Spec struct { type Process struct { // Terminal creates an interactive terminal for the container. Terminal bool `json:"terminal,omitempty"` + // InitialConsoleSize contains the initial h,w of the console. + InitialConsoleSize [2]uint `json:"initialConsoleSize"` // User specifies user information for the process. User User `json:"user"` // Args specifies the binary and arguments for the application to execute.