adtac / climate

The swiss-army knife of utility tools for Linux.
GNU General Public License v3.0
1.42k stars 76 forks source link

Improvements to the clock command #8

Open mckennajones opened 7 years ago

mckennajones commented 7 years ago

I really enjoy the clock command but because of it's implementation it has some things that are a bit annoying. First, it would be nice to have a command to remove the clock. Currently the only way is to kill the process manually or by killing the terminal window. Also, since it uses the tput command, it is not possible to scroll on your terminal, because it is constantly refreshing. Just some thoughts.

Great little app btw!

adtac commented 7 years ago

@mckennajones I've added an option to remove the clock in https://github.com/adtac/climate/commit/3dbc88f3c97fd220165b69cabe49485e9c937332 (it's quite hacky, but it does the job :P).

About the tput method, I'm not aware of anyway to write to a particular line without it. Any ideas anybody?