(
key:
| string
| {
name?: string | undefined;
ctrl?: boolean | undefined;
meta?: boolean | undefined;
shift?: boolean | undefined;
}
)
| 288 | |
| 289 | events = { |
| 290 | keypress( |
| 291 | key: |
| 292 | | string |
| 293 | | { |
| 294 | name?: string | undefined; |
| 295 | ctrl?: boolean | undefined; |
| 296 | meta?: boolean | undefined; |
| 297 | shift?: boolean | undefined; |
| 298 | } |
| 299 | ) { |
| 300 | if (typeof key === 'string') { |
| 301 | client.stdin.emit('keypress', null, { name: key }); |
| 302 | } else { |
| 303 | client.stdin.emit('keypress', null, key); |
| 304 | } |
| 305 | }, |
| 306 | type(text: string) { |
| 307 | client.stdin.write(text); |
| 308 | for (const char of text) { |
no test coverage detected