[fossil-users] Suggestion for command-line timeline display

2015-10-01 Thread Tony Papadimitriou
Hello, Not too long ago SQLite3 shell got a colored startup message about using “transient in-memory database”. I was wondering if the same idea could be used to highlight the *CURRENT* entry in the timeline (with some soft color – a shade of blue or green would be nice). This is because in a

Re: [fossil-users] Suggestion for command-line timeline display

2015-10-01 Thread Andy Bradford
Thus said "Tony Papadimitriou" on Thu, 01 Oct 2015 15:29:05 +0300: > I was wondering if the same idea could be used to highlight the > *CURRENT* entry in the timeline (with some soft color---a shade of > blue or green would be nice). You mean like this: fossil time | sed -e

Re: [fossil-users] Suggestion for command-line timeline display

2015-10-01 Thread Andy Bradford
Thus said "Tony Papadimitriou" on Thu, 01 Oct 2015 19:19:55 +0300: > 1. highlight the whole entry, not just the word *CURRENT*, and fossil time | sed -e '/\*CURRENT\*/ { s/.*/^[[1;32m&^[[0;m/ }' I don't know how to detect the current foreground color so if you can figure that out, you can

Re: [fossil-users] Suggestion for command-line timeline display

2015-10-01 Thread Tony Papadimitriou
I didn't actually try it but from what it looks like, yes, almost, BUT 1. highlight the whole entry, not just the word *CURRENT*, and 2. it should also work without ANSI escape sequence under Windows console. Also, the best 'color' would probably be just bold print to make it stand out from

Re: [fossil-users] Suggestion for command-line timeline display

2015-10-01 Thread Barry Arthur
My favourite tool for this sort of thing is supercat: http://supercat.nosredna.net/ I don't know if it compiles on Windows. On 2 October 2015 at 01:08, Andy Bradford wrote: > Thus said "Tony Papadimitriou" on Thu, 01 Oct 2015 19:19:55 +0300: > > > 1. highlight the