Package hsh :: Package curses_display :: Module display :: Class CursesDisplay
[hide private]
[frames] | no frames]

Class CursesDisplay

             object --+    
                      |    
     display.HshDisplay --+
                          |
             object --+   |
                      |   |
jobs.JobManagerListener --+
                          |
                         CursesDisplay

Instance Methods [hide private]
 
__init__(self, stdscr, tsettings)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
initialize_faces(self)
 
get_face(self, viewname, facename)
 
get_size(self)
Return a pair with the size of the display, (height, width).
 
get_job_view(self, job)
 
get_main_view(self)
 
give_focus(self, newfocus)
 
handle_crash(self, exc)
 
run(self)
 
handle_raw_input(self, fsj, ch)
 
handle_curses_input(self, ch)
 
next_window(self)
Move focus to the next view.
 
set_main(self, newmain, give_focus=False)
 
display_job(self, job, show=None, focus=False)
Set the job in the current Job View.
 
display_sessionlist(self)
Show the session list when input has created a new job.
 
display_search(self, show=None)
Display the search window per user request, boolean argument indicates if search should be displayed or hidden, default or None means toggle.
 
relinquish_terminal(self, job)
 
claim_terminal(self)
 
on_remove_job(self, job)
If the removed job is the currently displayed one, update.
 
show_alert(self, message)
Show a simple alert message to the user.
 
get_visible_job(self)
Return whichever job the user would think is the current one, based on the visible display.
 
show_view(self, view_name)
Show the view of the given name to the user.
 
get_view(self, view_name)
Return a view object for the named view.
 
list_views(self)
Return a list of view names.

Inherited from jobs.JobManagerListener: on_add_job

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, stdscr, tsettings)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

display_job(self, job, show=None, focus=False)

 

Set the job in the current Job View.

Parameters:
  • job - hsh.jobs.Job or JobView object; -1 to move back a job; +1 to move forward a job; or 0 to mean the current one is gone, and a new one needs to be chosen.
  • show - True means show the new job; False means don't change the view; None (default) means show the new job if JobView is visible.
  • focus - boolean indicating if jobview should receive focus.

on_remove_job(self, job)

 

If the removed job is the currently displayed one, update.

Overrides: jobs.JobManagerListener.on_remove_job

show_alert(self, message)

 

Show a simple alert message to the user.

Overrides: display.HshDisplay.show_alert
(inherited documentation)

get_visible_job(self)

 

Return whichever job the user would think is the current one, based on the visible display.

Overrides: display.HshDisplay.get_visible_job

show_view(self, view_name)

 

Show the view of the given name to the user.

Overrides: display.HshDisplay.show_view

list_views(self)

 

Return a list of view names.

Overrides: display.HshDisplay.list_views