]> git.armaanb.net Git - lightcards.git/commitdiff
Update header layout
authorArmaan Bhojwani <me@armaanb.net>
Sun, 31 Jan 2021 16:26:41 +0000 (11:26 -0500)
committerArmaan Bhojwani <me@armaanb.net>
Sun, 31 Jan 2021 16:26:41 +0000 (11:26 -0500)
lightcards/display.py

index 511dc1de80132cc002671e23787ef877f6f69c52..6b5fce11abe2e8cecd15960afb695733af555b1e 100755 (executable)
@@ -83,11 +83,10 @@ def disp_card(stdscr, stack, headers, obj):
         disp_menu(stdscr, stack, headers, obj)
     else:
         if obj.getSide() == 0:
-            top = headers[obj.getSide()] + "; " + str(obj.getIdx() + 1)
+            top = str(obj.getIdx() + 1) + " | " + headers[obj.getSide()]
         else:
-            top = headers[obj.getSide()] + "; " + str(obj.getIdx() + 1) + \
-                "; " + str(stack[obj.getIdx()][0])
-
+            top = str(obj.getIdx() + 1) + " | " + headers[obj.getSide()] \
+                + " | \"" + str(stack[obj.getIdx()][0]) + "\""
         header_width = mcols
         if mcols > 80:
             header_width = 80