Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
dbd45dfd
Commit
dbd45dfd
authored
Jul 20, 2013
by
JD Harrington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add special keys for backspace, delete and F1-F12
parent
16d102d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
builder/virtualbox/step_type_boot_command.go
builder/virtualbox/step_type_boot_command.go
+14
-0
builder/vmware/step_type_boot_command.go
builder/vmware/step_type_boot_command.go
+14
-0
No files found.
builder/virtualbox/step_type_boot_command.go
View file @
dbd45dfd
...
...
@@ -91,8 +91,22 @@ func (*stepTypeBootCommand) Cleanup(map[string]interface{}) {}
func
scancodes
(
message
string
)
[]
string
{
special
:=
make
(
map
[
string
][]
string
)
special
[
"<backspace>"
]
=
[]
string
{
"ff"
,
"08"
}
special
[
"<delete>"
]
=
[]
string
{
"ff"
,
"ff"
}
special
[
"<enter>"
]
=
[]
string
{
"1c"
,
"9c"
}
special
[
"<esc>"
]
=
[]
string
{
"01"
,
"81"
}
special
[
"<f1>"
]
=
[]
string
{
"ff"
,
"be"
}
special
[
"<f2>"
]
=
[]
string
{
"ff"
,
"bf"
}
special
[
"<f3>"
]
=
[]
string
{
"ff"
,
"c0"
}
special
[
"<f4>"
]
=
[]
string
{
"ff"
,
"c1"
}
special
[
"<f5>"
]
=
[]
string
{
"ff"
,
"c2"
}
special
[
"<f6>"
]
=
[]
string
{
"ff"
,
"c3"
}
special
[
"<f7>"
]
=
[]
string
{
"ff"
,
"c4"
}
special
[
"<f8>"
]
=
[]
string
{
"ff"
,
"c5"
}
special
[
"<f9>"
]
=
[]
string
{
"ff"
,
"c6"
}
special
[
"<f10>"
]
=
[]
string
{
"ff"
,
"c7"
}
special
[
"<f11>"
]
=
[]
string
{
"ff"
,
"c8"
}
special
[
"<f12>"
]
=
[]
string
{
"ff"
,
"c9"
}
special
[
"<return>"
]
=
[]
string
{
"1c"
,
"9c"
}
special
[
"<tab>"
]
=
[]
string
{
"0f"
,
"8f"
}
...
...
builder/vmware/step_type_boot_command.go
View file @
dbd45dfd
...
...
@@ -95,8 +95,22 @@ func (*stepTypeBootCommand) Cleanup(map[string]interface{}) {}
func
vncSendString
(
c
*
vnc
.
ClientConn
,
original
string
)
{
special
:=
make
(
map
[
string
]
uint32
)
special
[
"<backspace>"
]
=
0xFF08
special
[
"<delete>"
]
=
0xFFFF
special
[
"<enter>"
]
=
0xFF0D
special
[
"<esc>"
]
=
0xFF1B
special
[
"<f1>"
]
=
0xFFBE
special
[
"<f2>"
]
=
0xFFBF
special
[
"<f3>"
]
=
0xFFC0
special
[
"<f4>"
]
=
0xFFC1
special
[
"<f5>"
]
=
0xFFC2
special
[
"<f6>"
]
=
0xFFC3
special
[
"<f7>"
]
=
0xFFC4
special
[
"<f8>"
]
=
0xFFC5
special
[
"<f9>"
]
=
0xFFC6
special
[
"<f10>"
]
=
0xFFC7
special
[
"<f11>"
]
=
0xFFC8
special
[
"<f12>"
]
=
0xFFC9
special
[
"<return>"
]
=
0xFF0D
special
[
"<tab>"
]
=
0xFF09
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment