Skip to content

Commit

Permalink
fix on-keypress reaction
Browse files Browse the repository at this point in the history
  • Loading branch information
mjlescano committed Oct 14, 2024
1 parent 3e4c6bb commit 84f82f6
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 491 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,6 @@ jspm_packages/

# nx cache folder
.nx

# docker-compose data
/data
20 changes: 20 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: usecannon

services:
redis:
image: redis:7.4-alpine
restart: always
ports:
- '6379:6379'
command: redis-server --save 60 1 --loglevel warning
volumes:
- ./data/redis-data:/data

registry:
image: node:22.9-alpine
restart: always
ports:
- '6379:6379'
command: redis-server --save 60 1 --loglevel warning
volumes:
- ./data/redis-data:/data
4 changes: 3 additions & 1 deletion packages/cli/src/util/on-keypress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ export default function onKeypress(handleKeyPress: (evt: KeyboardEvent, controls
});

readline.emitKeypressEvents(process.stdin, rl);
process.stdin.setRawMode(true);
if (process.stdin.isTTY) {
process.stdin.setRawMode(true);
}
process.stdin.resume();

const listener = (_: string, key: KeyboardEvent) => {
Expand Down
314 changes: 0 additions & 314 deletions packages/op-bridge/CrossDomainMessenger.json

This file was deleted.

Loading

0 comments on commit 84f82f6

Please sign in to comment.