|
|
|
@ -202,12 +202,12 @@ func printUserScreen(redisClient *redis.Client, username string) string {
|
|
|
|
|
hackRCLoc := fmt.Sprintf("%s/user/%s/.nethackrc", config.NethackLauncher.HackDir, username) |
|
|
|
|
exec.Command("stty", "-F", "/dev/tty", "echo", "-cbreak").Run() |
|
|
|
|
clearScreen() |
|
|
|
|
nh := exec.Command("vim", hackRCLoc) |
|
|
|
|
nh := exec.Command("vim", "-Z", hackRCLoc) |
|
|
|
|
nh.Stdout = os.Stdout |
|
|
|
|
nh.Stdin = os.Stdin |
|
|
|
|
nh.Stderr = os.Stderr |
|
|
|
|
nh.Run() |
|
|
|
|
clearScree() |
|
|
|
|
clearScreen() |
|
|
|
|
printUserScreen(redisClient, username) |
|
|
|
|
case "w": |
|
|
|
|
clearScreen() |
|
|
|
|