diff --git a/lib/widgets/chat/info.rb b/lib/widgets/chat/info.rb index dc3b84a..9489d35 100644 --- a/lib/widgets/chat/info.rb +++ b/lib/widgets/chat/info.rb @@ -8,6 +8,11 @@ module Widgets private def draw + draw_main_line + draw_public_key + end + + def draw_main_line setpos 0, 0 case props[:status] @@ -33,7 +38,9 @@ module Widgets end addstr ' : ' addstr props[:status_message] + end + def draw_public_key setpos 0, 1 addstr PUBLIC_KEY_LABEL if PUBLIC_KEY_LABEL.length + props[:public_key].length > props[:width]