Skip to content

Instantly share code, notes, and snippets.

@oldendick
oldendick / putty.md
Created March 23, 2024 02:22
Saner putty settings

Putty has incredibly bad defaults. The main issue crops up when trying to use it to interact with z/VM programs that require lots of function keys.

Getting putty to cooperate with tmux and c3270 and have F1-F24 all work requires many settings to be just right.

I troubleshot this using the following commands:

infocmp -I $TERM
showkey -a
@oldendick
oldendick / caps-remap.ps1
Last active June 18, 2024 20:52
Remap caps lock to ctrl in windows
# Using this method is preferred over powertoys because it will also work with
# remote desktop and vmware.
#
# https://superuser.com/questions/949385/map-capslock-to-control-in-windows-10
#
# Setting an execution policy might be necessary to run powershell scripts.
# see: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.4
# Set-ExecutionPolicy -ExecutionPolicy <PolicyName> -Scope <scope>
# For example:
# Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process