rtm-cli icon indicating copy to clipboard operation
rtm-cli copied to clipboard

Certain options cause rtm-cli to not print output (or execute commands?)

Open paulstodghill opened this issue 5 years ago • 3 comments

I recently upgraded to version 1.5.1. Previously, I was able to use the "-p" and "-s" options to simplify the output when running on a dumb terminal (e.g., Emacs shell buffer). Now, when I use these options (and "-c"), even under a "normal" terminal window (e.g., xterm, Gnome Terminal), rtm prints neither the "Logged In As" message nor the ">" prompt. Typing in commands (e.g., "add task1") does not appear to work.

$ rtm
Logged In As: XXXXXXXX
> quit
$ rtm -c
[ no output after minutes ]

Interestingly, it does respond to CTRL-D (Unix end-of-file) and exits with a successful status.

I observe this behavior both under Linux and MacOS.

$ npm --version
6.9.0
$ rtm --version
1.5.1
$

paulstodghill avatar Mar 14 '19 22:03 paulstodghill

Thanks for pointing this out. It looks like I introduced this bug in the last update. With a flag present but no command given, it doesn't start the interactive mode like it should.

Until this is fixed, you can still start the interactive mode with just rtm and then add the flag to the first command in the interactive mode (ie ls -p). The flags are "sticky" in the sense that all subsequent commands in the session will have the flag set.

dwaring87 avatar Apr 07 '19 20:04 dwaring87

Excellent. Thank you for the workaround.

paulstodghill avatar Apr 09 '19 15:04 paulstodghill

Whoops. Hit the wrong button. Sorry about that.

paulstodghill avatar Apr 09 '19 15:04 paulstodghill