def screenwidth():
"Return the current width of the terminal window."
- with popen_or_die(b'stty size', b"rb") as tp:
- return int(tp.read().split()[1])
+ if pseudotime:
+ return 79
+ else:
+ with popen_or_die(b'stty size', b"rb") as tp:
+ return int(tp.read().split()[1])
def rfc3339(t):
"RFC3339 string from Unix time."
check "content check after second commit"
cat >testfile2 <<EOF
-= testfile1 =====================================================================
+= testfile1 =================================================================
2 * 1970-01-02T00:01:00Z Second comment
1 - 1970-01-02T00:02:00Z First comment
EOF
src $TESTOPTS list testfile1 >testfile3
-
diff testfile2 testfile3
check "list test"
+cat >testfile2 <<EOF
+= testfile1 =================================================================
+2 | 1970-01-02T00:01:00Z
+Second comment
+------------------------------------------------------------------------------
+1 | 1970-01-02T00:02:00Z
+First comment
+------------------------------------------------------------------------------
+EOF
+
+src $TESTOPTS log testfile1 >testfile3
+diff testfile2 testfile3
+check "log test"
+
+
+
+
# end