comparison sat_frontends/primitivus/base.py @ 3494:b5bed164dce0

frontends (primitivus): `SECTION_NAME` is now `CONFIG_SECTION`
author Goffi <goffi@goffi.org>
date Thu, 01 Apr 2021 13:57:20 +0200
parents 7892585b7e17
children 524856bd7b19
comparison
equal deleted inserted replaced
3493:b54bdd4ec507 3494:b5bed164dce0
312 self.x_notify = Notify() 312 self.x_notify = Notify()
313 313
314 # we already manage exit with a_key['APP_QUIT'], so we don't want C-c 314 # we already manage exit with a_key['APP_QUIT'], so we don't want C-c
315 signal.signal(signal.SIGINT, signal.SIG_IGN) 315 signal.signal(signal.SIGINT, signal.SIG_IGN)
316 sat_conf = sat_config.parseMainConf() 316 sat_conf = sat_config.parseMainConf()
317 self._bracketed_paste = C.bool(sat_config.getConfig(sat_conf, C.SECTION_NAME, 'bracketed_paste', 'false')) 317 self._bracketed_paste = C.bool(
318 sat_config.getConfig(sat_conf, C.CONFIG_SECTION, 'bracketed_paste', 'false')
319 )
318 if self._bracketed_paste: 320 if self._bracketed_paste:
319 log.debug("setting bracketed paste mode as requested") 321 log.debug("setting bracketed paste mode as requested")
320 sys.stdout.write("\033[?2004h") 322 sys.stdout.write("\033[?2004h")
321 self._bracketed_mode_set = True 323 self._bracketed_mode_set = True
322 324