Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
.idea/
.venv/

ait/
caesium.cfg
idec.db
__pycache__
lasts.lst
43 changes: 25 additions & 18 deletions caesium.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,10 @@ def get_term_size():
height, width = stdscr.getmaxyx()

def draw_title(y, x, title):
x = max(0, x)
if (x + len(title) + 2) > width:
title = title[:width - x - 2 - 3] + '...'
#
if bold[0]:
color = curses.color_pair(1) + curses.A_BOLD
else:
Expand Down Expand Up @@ -1766,21 +1770,24 @@ def msg_list(echoarea, msgids, msgn):
check_directories()
load_lasts()
stdscr = curses.initscr()
curses.start_color()
curses.use_default_colors()
load_colors()
curses.noecho()
curses.curs_set(False)
stdscr.keypad(True)

stdscr.bkgd(" ", curses.color_pair(1))
get_term_size()
if show_splash:
splash_screen()
draw_message_box("Подождите", False)
get_counts()
stdscr.clear()
echo_selector()
curses.echo()
curses.curs_set(True)
curses.endwin()
try:
curses.start_color()
curses.use_default_colors()
load_colors()
curses.noecho()
curses.curs_set(False)
stdscr.keypad(True)

stdscr.bkgd(" ", curses.color_pair(1))
get_term_size()
if show_splash:
splash_screen()
draw_message_box("Подождите", False)
get_counts()
stdscr.clear()
echo_selector()
finally:
curses.echo()
curses.curs_set(True)
stdscr.keypad(False)
curses.endwin()
2 changes: 1 addition & 1 deletion themes/white.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ url blue white
header red white
statusline white cyan
scrollbar cyan white
origin blue whie
origin blue white