Esempio n. 1
0
 def __init__(self):
     opts = ffi.new("notcurses_options *")
     opts.flags = lib.NCOPTION_NO_ALTERNATE_SCREEN
     self.nc = lib.notcurses_init(opts, sys.stdout)
     if not self.nc:
         raise NotcursesError("Error initializing notcurses")
     self.stdncplane = Ncplane(lib.notcurses_stdplane(self.nc))
Esempio n. 2
0
 def __init__(self):
     opts = ffi.new("notcurses_options *")
     opts.inhibit_alternate_screen = True
     self.nc = lib.notcurses_init(opts, sys.stdout)
     self.stdncplane = Ncplane(lib.notcurses_stdplane(self.nc))