Browse Source

ui.py: do_pager(): update LESS environment var

The MMGen Project 1 year ago
parent
commit
eee6167327
1 changed files with 1 additions and 3 deletions
  1. 1 3
      mmgen/ui.py

+ 1 - 3
mmgen/ui.py

@@ -113,9 +113,7 @@ def do_pager(text):
 
 	pagers = ['less','more']
 	end_msg = '\n(end of text)\n\n'
-	# --- Non-MSYS Windows code deleted ---
-	# raw, chop, horiz scroll 8 chars, disable buggy line chopping in MSYS
-	os.environ['LESS'] = '--shift 16 -RS' if gc.platform == 'win' else '--shift 8 -RS'
+	os.environ['LESS'] = '--jump-target=2 --shift=4 --tabs=4 --RAW-CONTROL-CHARS --chop-long-lines'
 
 	if 'PAGER' in os.environ and os.environ['PAGER'] != pagers[0]:
 		pagers = [os.environ['PAGER']] + pagers