Local commands, better cursor handling

Local commands must start with a ‘.’ now.