Everyone knows that we create a boilerplate node-pty terminal in this way-
const { spawn } = require("node-pty")
const ptyProcess = spawn("bash", [], {
name: "xterm-color",
cols: 30, rows: 30,
cwd: process.cwd.HOME,
env: process.env
})
ptyProcess.write("whoami\r")
// Here we include \r because it is used to virtually press the Enter key
Similarly what are the methods to virtually press other keys such as Ctrl, Shift, Arrows or @, etc in node-pty process? I want a complete table of methods to virtually press any key in existence in node-pty.
In Google Chrome, searching this thing gives no useful or familiar result, so can you please give me a table of methods we can use to press any kind of key in the world