F12 straight into bash
Nick Brown (1717) 13 posts |
Morning all, I use the bash port on ROS quite a bit and was wondering if there is an easy way to autorun bash when I hit F12 (and ideally ctrl-F12 too.) This would be complicated by the fact that, ideally I would want to be able to drop into the normal ROS command mode for configuring and managing ROS such as modules etc… from bash. Is there a SWI I can listen to for entry into CLI mode? Cheers, |
Theo Markettos (89) 919 posts |
Try messing with the ShellCLI An alternative – I wonder if ‘*Key 12 bash’ would do the trick. You’d have to press F12 twice, but it might work… For taskwindows it’s different – perhaps somehow have Ctrl-F12 run a TaskObey file that invokes bash? ‘*TaskWindow bash’ should do it, it’s just finding an easy way to launch that command. What do you use bash for, out of interest? It seemed quite unstable last time I used it? |
nemo (145) 2556 posts |
No. All that “CLI mode” is, is some variation of: REPEAT INPUTLINE ">" A$ IF A$>"" THEN OSCLI A$ UNTIL A$="" So you’re going to have to do some very devious interception of CLIV based on some interesting heuristics. |