Commit 28286d28 authored by Myles Steinhauser's avatar Myles Steinhauser

Fix tabs vs spaces

parent e4cfcb2a
...@@ -16,9 +16,9 @@ import ( ...@@ -16,9 +16,9 @@ import (
const KeyLeftShift uint32 = 0xFFE1 const KeyLeftShift uint32 = 0xFFE1
type bootCommandTemplateData struct { type bootCommandTemplateData struct {
HTTPIP string HTTPIP string
HTTPPort uint HTTPPort uint
Name string Name string
} }
// This step "types" the boot command into the VM over VNC. // This step "types" the boot command into the VM over VNC.
...@@ -112,16 +112,16 @@ func vncSendString(c *vnc.ClientConn, original string) { ...@@ -112,16 +112,16 @@ func vncSendString(c *vnc.ClientConn, original string) {
special["<f12>"] = 0xFFC9 special["<f12>"] = 0xFFC9
special["<return>"] = 0xFF0D special["<return>"] = 0xFF0D
special["<tab>"] = 0xFF09 special["<tab>"] = 0xFF09
special["<up>"] = 0xFF52 special["<up>"] = 0xFF52
special["<down>"] = 0xFF54 special["<down>"] = 0xFF54
special["<left>"] = 0xFF51 special["<left>"] = 0xFF51
special["<right>"] = 0xFF53 special["<right>"] = 0xFF53
special["<spacebar>"] = 0x020 special["<spacebar>"] = 0x020
special["<insert>"] = 0xFF63 special["<insert>"] = 0xFF63
special["<home>"] = 0xFF50 special["<home>"] = 0xFF50
special["<end>"] = 0xFF57 special["<end>"] = 0xFF57
special["<pageUp>"] = 0xFF55 special["<pageUp>"] = 0xFF55
special["<pageDown>"] = 0xFF56 special["<pageDown>"] = 0xFF56
shiftedChars := "~!@#$%^&*()_+{}|:\"<>?" shiftedChars := "~!@#$%^&*()_+{}|:\"<>?"
......
...@@ -15,9 +15,9 @@ import ( ...@@ -15,9 +15,9 @@ import (
const KeyLeftShift uint32 = 0xFFE1 const KeyLeftShift uint32 = 0xFFE1
type bootCommandTemplateData struct { type bootCommandTemplateData struct {
HTTPIP string HTTPIP string
HTTPPort uint HTTPPort uint
Name string Name string
} }
// This step "types" the boot command into the VM over VNC. // This step "types" the boot command into the VM over VNC.
...@@ -118,16 +118,16 @@ func scancodes(message string) []string { ...@@ -118,16 +118,16 @@ func scancodes(message string) []string {
special["<f10>"] = []string{"44", "c4"} special["<f10>"] = []string{"44", "c4"}
special["<return>"] = []string{"1c", "9c"} special["<return>"] = []string{"1c", "9c"}
special["<tab>"] = []string{"0f", "8f"} special["<tab>"] = []string{"0f", "8f"}
special["<up>"] = []string{"48", "c8"} special["<up>"] = []string{"48", "c8"}
special["<down>"] = []string{"50", "d0"} special["<down>"] = []string{"50", "d0"}
special["<left>"] = []string{"4b", "cb"} special["<left>"] = []string{"4b", "cb"}
special["<right>"] = []string{"4d", "cd"} special["<right>"] = []string{"4d", "cd"}
special["<spacebar>"] = []string{"39", "b9"} special["<spacebar>"] = []string{"39", "b9"}
special["<insert>"] = []string{"52", "d2"} special["<insert>"] = []string{"52", "d2"}
special["<home>"] = []string{"47", "c7"} special["<home>"] = []string{"47", "c7"}
special["<end>"] = []string{"4f", "cf"} special["<end>"] = []string{"4f", "cf"}
special["<pageUp>"] = []string{"49", "c9"} special["<pageUp>"] = []string{"49", "c9"}
special["<pageDown>"] = []string{"51", "d1"} special["<pageDown>"] = []string{"51", "d1"}
shiftedChars := "~!@#$%^&*()_+{}|:\"<>?" shiftedChars := "~!@#$%^&*()_+{}|:\"<>?"
......
...@@ -18,9 +18,9 @@ import ( ...@@ -18,9 +18,9 @@ import (
const KeyLeftShift uint32 = 0xFFE1 const KeyLeftShift uint32 = 0xFFE1
type bootCommandTemplateData struct { type bootCommandTemplateData struct {
HTTPIP string HTTPIP string
HTTPPort uint HTTPPort uint
Name string Name string
} }
// This step "types" the boot command into the VM over VNC. // This step "types" the boot command into the VM over VNC.
...@@ -136,16 +136,16 @@ func vncSendString(c *vnc.ClientConn, original string) { ...@@ -136,16 +136,16 @@ func vncSendString(c *vnc.ClientConn, original string) {
special["<f12>"] = 0xFFC9 special["<f12>"] = 0xFFC9
special["<return>"] = 0xFF0D special["<return>"] = 0xFF0D
special["<tab>"] = 0xFF09 special["<tab>"] = 0xFF09
special["<up>"] = 0xFF52 special["<up>"] = 0xFF52
special["<down>"] = 0xFF54 special["<down>"] = 0xFF54
special["<left>"] = 0xFF51 special["<left>"] = 0xFF51
special["<right>"] = 0xFF53 special["<right>"] = 0xFF53
special["<spacebar>"] = 0x020 special["<spacebar>"] = 0x020
special["<insert>"] = 0xFF63 special["<insert>"] = 0xFF63
special["<home>"] = 0xFF50 special["<home>"] = 0xFF50
special["<end>"] = 0xFF57 special["<end>"] = 0xFF57
special["<pageUp>"] = 0xFF55 special["<pageUp>"] = 0xFF55
special["<pageDown>"] = 0xFF56 special["<pageDown>"] = 0xFF56
shiftedChars := "~!@#$%^&*()_+{}|:\"<>?" shiftedChars := "~!@#$%^&*()_+{}|:\"<>?"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment