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))
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))