From f9ad264f4dd361fce70435d3c33021b4a0b3631a Mon Sep 17 00:00:00 2001 From: Matthew Hooker Date: Thu, 12 Apr 2018 23:11:14 -0700 Subject: [PATCH] Comments --- common/boot_command/boot_command_ast.go | 2 -- common/boot_command/pc_at_driver.go | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/common/boot_command/boot_command_ast.go b/common/boot_command/boot_command_ast.go index 87457a22c..f9605a67b 100644 --- a/common/boot_command/boot_command_ast.go +++ b/common/boot_command/boot_command_ast.go @@ -15,8 +15,6 @@ TODO: * comments * lower-case specials * check that `` works on parallels. It's different now. - * take `Finalize` out of the Driver interface. let builders that need it - * use it. also rename to `Flush`. */ // KeysAction represents what we want to do with a key press. diff --git a/common/boot_command/pc_at_driver.go b/common/boot_command/pc_at_driver.go index ca87c1926..b89dcc081 100644 --- a/common/boot_command/pc_at_driver.go +++ b/common/boot_command/pc_at_driver.go @@ -25,6 +25,9 @@ type pcATDriver struct { scancodeChunkSize int } +// NewPCATDriver creates a new boot command driver for VMs that expect PC-AT +// keyboard codes. `send` should send its argument to the VM. `chunkSize` should +// be the maximum number of keyboard codes to send to `send` at one time. func NewPCATDriver(send SendCodeFunc, chunkSize int) *pcATDriver { // We delay (default 100ms) between each input event to allow for CPU or // network latency. See PackerKeyEnv for tuning.