| 349 | } |
| 350 | function clear() { console.log("\x1b[3J\x1b[H\x1b[2J"); } |
| 351 | function help() { |
| 352 | const b = (s) => `${C.green}${s}${C.reset}`, d = (s) => `${C.dim}${s}${C.reset}`; |
| 353 | console.log(` |
| 354 | ${C.yellow}=== function-stalker ===${C.reset} |
| 355 | ${b("detachAll()")} ${d("remove all hooks and stop following")} |
| 356 | ${b("clear()")} ${d("clear the screen")} |
| 357 | ${b("help()")} ${d("show this help")} |
| 358 | |
| 359 | ${d("Edit CONFIG at top: targets=functions to hook+trace, e.g. \"libil2cpp.so+0x1218300\".")} |
| 360 | ${d("Per call: [call+] enter (args) -> Stalker events -> [call-] leave (ret, count).")} |
| 361 | `); |
| 362 | } |
| 363 | |
| 364 | globalThis.detachAll = detachAll; |
| 365 | globalThis.clear = clear; |