Table of Contents

Module: readline_stack ./src/peak/util/readline_stack.py

Readline configuration stack, with fallback if no readline module

Imported modules   
import os
Functions   
_closeHistory
_openHistory
addRLHistoryLine
popRLHistory
pushRLHistory
  _closeHistory 
_closeHistory ()

Ensure that our current history is written, and, if possible, clear the history afterward. Also, if possible, don't write out any history content that might have come from a different history.

  _openHistory 
_openHistory ()

  addRLHistoryLine 
addRLHistoryLine ( l )

  popRLHistory 
popRLHistory ()

  pushRLHistory 
pushRLHistory (
        fn,
        completer=None,
        delims=None,
        environ=None,
        lines=-1,
        )

Set up readline with given parameters, saving old state. This function is safe to call if readline is absent; it will silently do nothing.

fn is a filename, relative to the home directory, for the history file.

completer is a completion callable (see readline module documentation), or as a convenience, True may be passed for an interactive Python completer.

delimns is a string containing characters that delimit completion words. passing None will use teh default set.

environ is the environment in which to look up variables such as the home directory.

lines is the number of lines of history to keep, or -1 for unlimited.


Table of Contents

This document was automatically generated on Mon Sep 2 01:11:04 2024 by HappyDoc version 2.1