VMware Workstation 7 Manual do Utilizador Página 344

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
Vista de página 343
Workstation User’s Manual
344 VMware, Inc.
To change how a specific key is mapped
1PoweroffthevirtualmachineandclosetheWorkstationwindow.
2Onthemachinethathoststhevirtualmachine,addthefollowinglinetothevirtual
machineconfiguration(.vmx)fileorto~/.vmware/config:
xkeymap.keycode.<code> = "<v-scan_code>"
The<code>valuemustbeadecimalnumberand<v-scan_code>mustbea
Csyntaxhexadecimalnumber(forexample,0x001).
Forexample,toswapleftCtrlandCapsLock,usethefollowinglines:
xkeymap.keycode.64 = "0x01d # X Caps_Lock -> VM left ctrl"
xkeymap.keycode.37 = "0x03a # X Control_L -> VM caps lock"
3 Saveandclosethefile.
X Key Codes Compared to Keysyms
PressingakeyonthePCkeyboardgeneratesaPCscancodebasedroughlyonthe
positionofthekey.Forexample,theZkeyonaGermankeyboardgeneratesthesame
codeastheYkeyonanEnglishkeyboardbecausetheyareinthesamepositiononthe
keyboard.Mostkeyshav
eonebytescancodes,butsomekeyshavetwobytescan
codeswithprefix0xe0.
Internally,WorkstationusesasimplifiedversionofthePCscancodethatisasingle
ninebitnumericvalue,calledavscancode.Avscancodeiswrittenasathreedi
git
hexadecima
lnumber.Thefirstdigitis0or1.Forexample,theCtrlkeyontheleftside
ofthekeyboardhasaonebytescancode(0x1d).Itsvscancodeis0x01d.TheCtrlkey
scancodeontherightsideofthekeyboardistwobytes(0xe0,0x1d).Itsvsc
ancodeis
0x11d.
AnXFree86serveronaPChasaonetoonemappingfromXkeycodestoPCscan
codes,orvscancodes,whichiswhatWorkstationuses.WhenWorkstationishostedon
anXFree86serverandrunsalocalvirtualmachine,itus
esthebuilt
inmappingfromX
keycodestovscancodes.Thismappingiskeyboardindependentandshouldbe
correctformostlanguages.Inothercases(notanXFree86serverornotalocalserver),
Workstationmustmapkeysymstovscancodesbyusingasetofkeyboardspeci
fic
tab
les.
AnXserverusesatwolevelencodingofkeys,whichincludestheXkeycodeandthe
keysym.AnXkeycodeisaonebytevalue.Theassignmentofkeycodestokeys
dependsontheXserverimplementationandthephysicalkeyboard.Asaresult,anX
appl
icationnormallycannotusekeycodesdirectly.Instead,thekeycodesaremapped
Vista de página 343
1 2 ... 339 340 341 342 343 344 345 346 347 348 349 ... 511 512

Comentários a estes Manuais

Sem comentários