diff --git a/TODO b/TODO new file mode 100644 index 0000000..21833d0 --- /dev/null +++ b/TODO @@ -0,0 +1,2 @@ +* Implement -f functionality: follow a file. +* Respond to terminal resizing. diff --git a/log_happy.nim b/log_happy.nim index ab2363f..2eeaac4 100644 --- a/log_happy.nim +++ b/log_happy.nim @@ -2,7 +2,7 @@ ## ========= ## ## Little tool to extract expected information from log streams. -import json, logging, ncurses, os, osproc, streams, strutils, threadpool +import json, logging, ncurses, os, osproc, sequtils, streams, strutils, threadpool import nre except toSeq import private/ncurses_ext @@ -31,6 +31,9 @@ proc readStream(stream: Stream): void = when isMainModule: var cmdProc: Process + var inStream: Stream + var outFile: File + try: let usage = """ Usage: @@ -44,6 +47,8 @@ Options: -E