mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 17:00:59 +00:00
Remove Anthropic OAuth support
This commit is contained in:
parent
2e362fbfd2
commit
f5e6bcac1b
12 changed files with 121 additions and 183 deletions
|
|
@ -156,9 +156,23 @@ class SnakeComponent {
|
|||
this.onClose();
|
||||
return;
|
||||
}
|
||||
// Any other key resumes
|
||||
// Any other key resumes (including P)
|
||||
this.paused = false;
|
||||
this.startGame();
|
||||
this.version++;
|
||||
this.tui.requestRender();
|
||||
return;
|
||||
}
|
||||
|
||||
// P to pause without closing
|
||||
if (data === "p" || data === "P") {
|
||||
this.paused = true;
|
||||
if (this.interval) {
|
||||
clearInterval(this.interval);
|
||||
this.interval = null;
|
||||
}
|
||||
this.version++;
|
||||
this.tui.requestRender();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -275,7 +289,7 @@ class SnakeComponent {
|
|||
} else if (this.state.gameOver) {
|
||||
footer = `${red(bold("GAME OVER!"))} Press ${bold("R")} to restart, ${bold("Q")} to quit`;
|
||||
} else {
|
||||
footer = `↑↓←→ or WASD to move, ${bold("ESC")} pause, ${bold("Q")} quit`;
|
||||
footer = `↑↓←→ or WASD to move, ${bold("P")} pause, ${bold("ESC")} save+quit, ${bold("Q")} quit`;
|
||||
}
|
||||
lines.push(this.padLine(boxLine(footer), width));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue