dbrgn / orochi

Orochi is an interactive command line client for 8tracks.com.
GNU General Public License v3.0
84 stars 17 forks source link

Add terminal title option; enable readline history #58

Closed bshillingford closed 8 years ago

bshillingford commented 9 years ago

Cheers, Brendan

dbrgn commented 9 years ago

Hey. I'm very sorry for not answering sooner, I somehow missed the notification email.

This is a great feature, I had no idea you could set the terminal title using ANSI escape codes.

But why is this a optional feature? Why not enable it by default?

bshillingford commented 9 years ago

I assumed not all terminals support this feature, although I guess that's true for colour too. I'll change it to on by default later.

A better solution would be to check termcap/terminfo for colour/title support, but I'm not sure how to do this and don't want to add non-builtin dependencies.

On Mon, Oct 5, 2015 at 2:36 PM, Danilo Bargen notifications@github.com wrote:

Hey. I'm very sorry for not answering sooner, I somehow missed the notification email.

This is a great feature, I had no idea you could set the terminal title using ANSI escape codes.

But why is this a optional feature? Why not enable it by default?

— Reply to this email directly or view it on GitHub https://github.com/dbrgn/orochi/pull/58#issuecomment-145529499.

dbrgn commented 9 years ago

Right now I'd simply assume ANSI compatibility. We could probably even set it as a requirement for using Orochi.

I tested it in xterm as well as in the OS X terminal, they both supported the escape sequences. They don't work in IDLE, but on the other hand the colors don't work in there either.

dbrgn commented 8 years ago

Sorry again for not answering sooner, but I don't get any notification for new commit pushes without comments :)

Strictly speaking the readline history shouldn't belong in the XDG_CONFIG_HOME directory, but instead in the XDG_CACHE_HOME directory. But I can do that change myself.

dbrgn commented 8 years ago

Merged in 929fd23 and 521afb0. Thanks!